Follow-up : tag enable when create doc
This commit is contained in:
parent
e2b76d52c4
commit
dbea6cee68
5 changed files with 36 additions and 14 deletions
|
|
@ -26,19 +26,39 @@
|
|||
* @brief show button in the list of actions
|
||||
*
|
||||
*/
|
||||
$http=new HttpInput();
|
||||
?>
|
||||
<div class="content" style="display:inline" >
|
||||
<div style="display:inline">
|
||||
<input id="bt_search" type="button" class="smallbutton" onclick="$('search_action').style.display='block'" value="<?php echo _('Recherche') ?>">
|
||||
<input id="bt_add" type="button" class="smallbutton" onclick="$('b_add_action').style.display='block';document.getElementById('action_type').focus()" value="<?php echo _('Ajout') ?>">
|
||||
<div id="b_add_action" style="display:none" class="inner_box">
|
||||
<?php echo HtmlInput::title_box(_("Ajout d'une action"), "b_add_action","hide");?>
|
||||
<form method="get" style="display:inline" action="do.php">
|
||||
<?php echo dossier::hidden();
|
||||
$a_typeAction=new ISelect("action_type");
|
||||
$a_typeAction->rowsize=10;
|
||||
$a_typeAction->value=$cn->make_array("select dt_id,dt_value from document_type order by 2");
|
||||
echo _("Type action ");
|
||||
echo $a_typeAction->input();
|
||||
?>
|
||||
<input type="submit" class="smallbutton" name="submit_query" value="<?php echo _("Ajout Action")?>">
|
||||
<input type="hidden" name="ac" value="<?php echo $_REQUEST['ac']?>">
|
||||
|
||||
<input type="hidden" name="ac" value="<?php echo $http->request('ac')?>">
|
||||
<input type="hidden" name="sa" value="add_action">
|
||||
<?php echo $supl_hidden?>
|
||||
<input id="bt_search" type="button" class="smallbutton" onclick="$('search_action').style.display='block'" value="<?php echo _('Recherche')?>">
|
||||
|
||||
<ul class="aligned-block">
|
||||
<li>
|
||||
|
||||
<input type="submit" class="smallbutton" name="submit_query" value="<?php echo _("Ajout Action")?>">
|
||||
</li>
|
||||
<li>
|
||||
<?php echo HtmlInput::button_hide("b_add_action");?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue