View | Details | Raw Unified | Return to bug 31771
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-48 / +49 lines)
Lines 101-155 Link Here
101
                    <h1>Stock rotation</h1>
101
                    <h1>Stock rotation</h1>
102
102
103
                    [% IF existing_rotas.size > 0 %]
103
                    [% IF existing_rotas.size > 0 %]
104
                        <table id="stock_rotation" class="rotas_table" role="grid">
104
                        <div class="page-section">
105
                            <thead>
105
                            <table id="stock_rotation" class="rotas_table" role="grid">
106
                                <tr>
106
                                <thead>
107
                                <th class="anti-the">Name</th>
108
                                <th>Cyclical</th>
109
                                <th>Active</th>
110
                                <th>Description</th>
111
                                <th>Number of items</th>
112
                                <th class="NoSort noExport">&nbsp;</th>
113
                                </tr>
114
                            </thead>
115
                            <tbody>
116
                                [% FOREACH rota IN existing_rotas %]
117
                                    <tr>
107
                                    <tr>
118
                                        <td>[% rota.title | html %]</td>
108
                                    <th class="anti-the">Name</th>
119
                                        <td>[% rota.cyclical ? 'Yes' : 'No' | html %]</td>
109
                                    <th>Cyclical</th>
120
                                        <td>[% rota.active ? 'Yes' : 'No' | html %]</td>
110
                                    <th>Active</th>
121
                                        <td>[% rota.description | html %]</td>
111
                                    <th>Description</th>
122
                                        <td>[% rota.stockrotationitems.count | html %]</td>
112
                                    <th>Number of items</th>
123
                                        <td class="actions">
113
                                    <th class="NoSort noExport">&nbsp;</th>
124
                                            <a class="btn btn-default btn-xs" href="?op=create_edit_rota&amp;rota_id=[% rota.rota_id | uri %]">
125
                                                <i class="fa fa-pencil"></i>
126
                                                Edit
127
                                            </a>
128
                                            <div class="btn-group dropup" role="group">
129
                                                <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
130
                                                    Manage
131
                                                    <i class="fa fa-caret-down"></i>
132
                                                </button>
133
                                                <ul class="dropdown-menu pull-right">
134
                                                    <li><a href="?op=manage_stages&amp;rota_id=[% rota.rota_id | uri %]">Stages</a></li>
135
                                                    [% IF CAN_user_stockrotation_manage_rota_items && rota.stockrotationstages.count > 0 %]
136
                                                    <li><a href="?op=manage_items&amp;rota_id=[% rota.rota_id | uri %]">Items</a></li>
137
                                                    [% END %]
138
                                                </ul>
139
                                            </div>
140
                                            <a class="btn btn-default btn-xs" href="?op=toggle_rota&amp;rota_id=[% rota.rota_id | uri %]">
141
                                                <i class="fa fa-power-off"></i>
142
                                                [% IF !rota.active %]
143
                                                    Activate
144
                                                [% ELSE %]
145
                                                    Deactivate
146
                                                [% END %]
147
                                            </a>
148
                                        </td>
149
                                    </tr>
114
                                    </tr>
150
                                [% END %]
115
                                </thead>
151
                            </tbody>
116
                                <tbody>
152
                        </table>
117
                                    [% FOREACH rota IN existing_rotas %]
118
                                        <tr>
119
                                            <td>[% rota.title | html %]</td>
120
                                            <td>[% rota.cyclical ? 'Yes' : 'No' | html %]</td>
121
                                            <td>[% rota.active ? 'Yes' : 'No' | html %]</td>
122
                                            <td>[% rota.description | html %]</td>
123
                                            <td>[% rota.stockrotationitems.count | html %]</td>
124
                                            <td class="actions">
125
                                                <a class="btn btn-default btn-xs" href="?op=create_edit_rota&amp;rota_id=[% rota.rota_id | uri %]">
126
                                                    <i class="fa fa-pencil"></i>
127
                                                    Edit
128
                                                </a>
129
                                                <div class="btn-group dropup" role="group">
130
                                                    <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
131
                                                        Manage
132
                                                        <i class="fa fa-caret-down"></i>
133
                                                    </button>
134
                                                    <ul class="dropdown-menu pull-right">
135
                                                        <li><a href="?op=manage_stages&amp;rota_id=[% rota.rota_id | uri %]">Stages</a></li>
136
                                                        [% IF CAN_user_stockrotation_manage_rota_items && rota.stockrotationstages.count > 0 %]
137
                                                        <li><a href="?op=manage_items&amp;rota_id=[% rota.rota_id | uri %]">Items</a></li>
138
                                                        [% END %]
139
                                                    </ul>
140
                                                </div>
141
                                                <a class="btn btn-default btn-xs" href="?op=toggle_rota&amp;rota_id=[% rota.rota_id | uri %]">
142
                                                    <i class="fa fa-power-off"></i>
143
                                                    [% IF !rota.active %]
144
                                                        Activate
145
                                                    [% ELSE %]
146
                                                        Deactivate
147
                                                    [% END %]
148
                                                </a>
149
                                            </td>
150
                                        </tr>
151
                                    [% END %]
152
                                </tbody>
153
                            </table>
154
                        </div><!-- /.page-section -->
153
                    [% END %]
155
                    [% END %]
154
156
155
                [% ELSIF (op == 'create_edit_rota') %]
157
                [% ELSIF (op == 'create_edit_rota') %]
156
- 

Return to bug 31771