#include "macro_workflows.html" />
<@row>
<@columns>
<@fieldSet>
<@tabs>
<@tabList>
<@tabLink active=true href='jsp/admin/plugins/workflow/ModifyState.jsp?id_state=${state.id}' title='#i18n{workflow.modify_state.title}'/>
<@tabLink href='jsp/admin/plugins/workflow/GetModifyReflexiveAction.jsp?id_state=${state.id}' title='#i18n{workflow.modify_reflexive_action.title}'/>
@tabList>
<@tabContent>
<@tform action='jsp/admin/plugins/workflow/DoModifyState.jsp?plugin_name=workflow'>
<@input type='hidden' name='id_state' value=state.id/>
<@formGroup labelFor='name' labelKey='#i18n{workflow.create_state.label_name}' helpKey='#i18n{workflow.create_state.label_name_comment}' mandatory=true>
<@input type='text' name='name' maxlength=255 value=state.name />
@formGroup>
<@formGroup labelFor='description' labelKey='#i18n{workflow.create_action.label_description}' helpKey='#i18n{workflow.create_action.label_description_comment}' mandatory=true>
<@input type='textarea' name='description' >${state.description}@input>
@formGroup>
<@formGroup labelFor='is_initial_state' labelKey='#i18n{workflow.create_state.label_initial_state}' helpKey='#i18n{workflow.create_state.label_initial_state_comment}'>
<@checkBox name='is_initial_state' id='is_initial_state' value='1' checked=state.isInitialState( ) />
@formGroup>
<@formGroup labelFor='is_initial_state' labelKey='#i18n{workflow.create_state.label_required_workgroup_assigned}' helpKey='#i18n{workflow.create_state.label_required_workgroup_assigned_comment}'>
<@checkBox name='is_required_workgroup_assigned' id='is_required_workgroup_assigned' value='1' checked=state.isRequiredWorkgroupAssigned( ) />
@formGroup>
<@formGroup labelFor='id_icon' labelKey='#i18n{workflow.create_state.label_icon}' helpKey='#i18n{workflow.create_state.label_icon_comment}'>
<@radioIconList name='id_icon' default_value=state.icon.id icons=icon_list />
<@radioButton orientation='horizontal' name='id_icon' value='-1' checked=state.icon.id==0 labelKey='#i18n{workflow.create_state.label_no_icon}' />
@formGroup>
<@formGroup>
<@button type='submit' name='save' buttonIcon='check' title='#i18n{workflow.create_state.button_save}' />
<@button type='submit' name='cancel' buttonIcon='times-circle' title='#i18n{workflow.create_state.button_cancel}' cancel=true />
@formGroup>
@tform>
@tabContent>
@tabs>
@fieldSet>
@columns>
@row>