Skip to content
Snippets Groups Projects
Commit 4d0caaf0 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #18027 : ui strings modification

parent 1c291755
Branches
Tags
3 merge requests!715Master,!696Dev#20351 articles admin as list,!610Dev#18027 categories permissions retrocompat
......@@ -3,6 +3,7 @@
</p>
<?php echo $this->renderForm($this->form); ?>
<?php if ($this->permissions) { ?>
<h2><?php echo $this->_('Permissions'); ?></h2>
<h2><?php echo $this->_('Permissions de la catégorie %s',
$this->category->getLibelle()); ?></h2>
<?php echo $this->permissions; ?>
<?php } ?>
......@@ -39,6 +39,8 @@ class ZendAfi_View_Helper_Admin_GroupsPermissions extends Zend_View_Helper_Abstr
$this->permissionsRows($model, $permissions, $groups)),
['style' => 'border-collapse:collapse;margin-bottom:15px;'])
. $this->view->bouton('type=V',
'texte=' . $this->_('Valider les permissions'),
'largeur=220px',
'id=perms' . $model->getId(),
'javascript=setFlagMaj(false);'),
['action' => $action,
......
......@@ -16,13 +16,13 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//////////////////////////////////////////////////////////////////////////////////////////
// OPAC3 : Bouton avec picto et texte
//////////////////////////////////////////////////////////////////////////////////////////
class ZendAfi_View_Helper_Bouton extends ZendAfi_View_Helper_BaseHelper {
protected
protected
$_render_popup = false;
......@@ -37,7 +37,7 @@ class ZendAfi_View_Helper_Bouton extends ZendAfi_View_Helper_BaseHelper {
function bouton( )
{
for( $i=0; $i < func_num_args(); $i++) $args[] = func_get_arg($i);
$id = '';
$picto='';
$texte='';
......@@ -68,10 +68,11 @@ class ZendAfi_View_Helper_Bouton extends ZendAfi_View_Helper_BaseHelper {
if( $attrib[1]=="V")
{
if(!$id) $id="975";
$picto=URL_ADMIN_IMG . '/ico/coche_verte.gif';
$texte=$this->translate()->_("Valider");
if(!$largeur)
$largeur="120px";
$picto = URL_ADMIN_IMG . '/ico/coche_verte.gif';
if (!$texte)
$texte = $this->translate()->_('Valider');
if(!$largeur)
$largeur="120px";
$onclick = 'var form=$(this).parents(\'form\'); if (!form.size()) form=$(this).parents(\'table\').prevAll(\'form\');';
if ($this->_render_popup)
......@@ -111,11 +112,11 @@ class ZendAfi_View_Helper_Bouton extends ZendAfi_View_Helper_BaseHelper {
$html[]= '</tr>';
$html[]= '</table>';
$html[]= '</a>';
if($id_toolbar > 0 ) $html[]='</td>';
$html[]='</div>';
return implode("", $html);
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment