-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate-edit.html
109 lines (81 loc) · 4.78 KB
/
state-edit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{extends file="admin-layout.tpl"}
{block name="no-return-functions"}
{$admin_current_location = 'configuration'}
{/block}
{block name="page-title"}{intl l='Edit a state'}{/block}
{block name="check-resource"}admin.configuration.state{/block}
{block name="check-access"}update{/block}
{block name="main-content"}
<div class="states edit-state">
<div id="wrapper" class="container">
{loop name="state_edit" type="state" id="$state_id" backend_context="1" lang="$edit_language_id" visible="*"}
<ul class="breadcrumb">
<li><a href="{url path='/admin/home'}">{intl l="Home"}</a></li>
<li><a href="{url path='/admin/configuration'}">{intl l="Configuration"}</a></li>
<li><a href="{url path='/admin/configuration/states'}">{intl l="States"}</a></li>
<li>{intl l='Editing state "%name"' name="{$TITLE}"}</li>
</ul>
{hook name="state-edit.top" state_id=$state_id}
<div class="row">
<div class="col-md-12 general-block-decorator">
<div class="row">
<div class="col-md-12 title title-without-tabs">
{intl l='Edit state "%name"' name="{$TITLE}"}
</div>
<div class="form-container">
<div class="col-md-12">
{form name="thelia.admin.state.modification"}
<form method="POST" action="{url path="/admin/configuration/state/save/%id" id=$ID}" {form_enctype} class="clearfix">
{include
file = "includes/inner-form-toolbar.html"
hide_submit_buttons = false
page_url = {url path="/admin/configuration/state/update/%id" id=$ID}
close_url = {url path="/admin/configuration/states"}
}
{* Be sure to get the state ID, even if the form could not be validated *}
<input type="hidden" name="state_id" value="{$state_id}" />
{form_hidden_fields exclude="locale"}
{render_form_field field='success_url' value={url path="/admin/configuration/states"}}
{render_form_field field='locale' value={$edit_language_locale}}
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
<div class="row">
<div class="col-md-6">
{render_form_field field='title'}
{render_form_field field="visible"}
</div>
<div class="col-md-6">
{custom_render_form_field field='country_id'}
<select {form_field_attributes field='country_id'}>
{loop name="country-list" type="country" visible="*" has_states="1"}
<option value="{$ID}" {if $ID == $COUNTRY}selected{/if}>{$TITLE}</option>
{/loop}
</select>
{/custom_render_form_field}
{render_form_field field="isocode"}
</div>
</div>
</form>
{/form}
</div>
</div>
</div>
</div>
</div>
{hook name="state-edit.bottom" state_id=$state_id}
{/loop}
{elseloop rel="state_edit"}
<div class="row">
<div class="col-md-12">
<div class="alert alert-error">
{intl l="Sorry, state ID=%id was not found." id={$state_id}}
</div>
</div>
</div>
{/elseloop}
</div>
</div>
{/block}
{block name="javascript-last-call"}
{hook name="state.edit-js" location="state-edit-js" state_id=$state_id }
{hook name="wysiwyg.js" location="wysiwyg-state-edit-js" }
{/block}