123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- {eq name="admin.cid" value="0"}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
- </div>
- </div>
- {else/}
- <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
- {/eq}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Volunteer_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-volunteer_id" data-rule="required" data-source="volunteer/index" class="form-control selectpage" name="row[volunteer_id]" type="text" value="{$row.volunteer_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Institution_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-institution_id" data-rule="required" data-source="institution/institution/index" class="form-control selectpage" name="row[institution_id]" type="text" value="{$row.institution_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Certificateimage')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-certificateimage" data-rule="required" class="form-control" size="50" name="row[certificateimage]" type="text" value="{$row.certificateimage|htmlentities}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-certificateimage" class="btn btn-danger faupload" data-input-id="c-certificateimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certificateimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-certificateimage" class="btn btn-primary fachoose" data-input-id="c-certificateimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-certificateimage"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-certificateimage"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Receive')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-receive" class="form-control" name="row[receive]" type="number" value="{$row.receive|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Refuse')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-refuse" class="form-control" name="row[refuse]" type="number" value="{$row.refuse|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Out')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-out" class="form-control" name="row[out]" type="number" value="{$row.out|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Start_hour')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-start_hour" data-rule="required" class="form-control" name="row[start_hour]" type="number" value="{$row.start_hour|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('End_hour')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-end_hour" data-rule="required" class="form-control" name="row[end_hour]" type="number" value="{$row.end_hour|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Work_week')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-work_week" class="form-control selectpicker" multiple="" name="row[work_week][]">
- {foreach name="workWeekList" item="vo"}
- <option value="{$key}" {in name="key" value="$row.work_week"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Speciali')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-speciali" class="form-control" name="row[speciali]" type="text" value="{$row.speciali|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-latitude" data-rule="required" class="form-control" name="row[latitude]" type="text" value="{$row.latitude|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-longitude" data-rule="required" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <div class="radio">
- {foreach name="statusList" item="vo"}
- <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </div>
- </div>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|