129 lines
7.0 KiB
Smarty
129 lines
7.0 KiB
Smarty
<h4>{{translate 'Step 1' scope='Import'}}</h4>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h5 class="panel-title">{{translate 'What to Import?' scope='Import'}}</h5></div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Entity Type' scope='Import'}}</label>
|
|
<select id="import-entity-type" class="form-control">
|
|
{{#each entityList}}
|
|
<option value="{{./this}}" {{#ifEqual this ../entityType}}selected{{/ifEqual}}>{{translate this category='scopeNamesPlural'}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'File' scope='Import'}}</label>
|
|
<div>
|
|
<input type="file" id="import-file">
|
|
</div>
|
|
<div class="text-muted small">{{translate 'utf8' category='messages' scope='Import'}}</div>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'What to do?' scope='Import'}}</label>
|
|
<div>
|
|
<select class="form-control" id="import-action">
|
|
<option value="create">{{translate 'Create Only' scope='Import'}}</option>
|
|
<option value="createAndUpdate">{{translate 'Create and Update' scope='Import'}}</option>
|
|
<option value="update">{{translate 'Update Only' scope='Import'}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h5 class="panel-title">{{translate 'Properties' scope='Import'}}</h5></div>
|
|
<div class="panel-body">
|
|
<div id="import-properties">
|
|
<div class="row">
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Header Row' scope='Import'}}</label>
|
|
<div>
|
|
<input type="checkbox" id="import-header-row">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Person Name Format' scope='Import'}}</label>
|
|
<div>
|
|
<select class="form-control" id="import-person-name-format">
|
|
<option value="f l">{{translate 'John Smith' scope='Import'}}</option>
|
|
<option value="l f">{{translate 'Smith John' scope='Import'}}</option>
|
|
<option value="l, f">{{translate 'Smith, John' scope='Import'}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Field Delimiter' scope='Import'}}</label>
|
|
<select class="form-control" id="import-field-delimiter">
|
|
<option value=",">,</option>
|
|
<option value=";">;</option>
|
|
<option value="\t">\t</option>
|
|
<option value="|">|</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Date Format' scope='Import'}}</label>
|
|
<select class="form-control" id="import-date-format">
|
|
<option value="YYYY-MM-DD">2014-12-27</option>
|
|
<option value="DD-MM-YYYY">27-12-2014</option>
|
|
<option value="MM-DD-YYYY">12-27-2014</option>
|
|
<option value="MM/DD/YYYY">12/27/2014</option>
|
|
<option value="DD/MM/YYYY">27/12/2014</option>
|
|
<option value="DD.MM.YYYY">27.12.2014</option>
|
|
<option value="MM.DD.YYYY">12.27.2014</option>
|
|
<option value="YYYY.MM.DD">2014.12.27</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Decimal Mark' scope='Import'}}</label>
|
|
<input class="form-control" type="text" id="import-decimal-mark" maxlength="1" value=".">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Text Qualifier' scope='Import'}}</label>
|
|
<select class="form-control" id="import-text-qualifier">
|
|
<option value=""">Double Quote</option>
|
|
<option value="'">Single Quote</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Time Format' scope='Import'}}</label>
|
|
<select class="form-control" id="import-time-format">
|
|
<option value="HH:mm">23:00</option>
|
|
<option value="hh:mm a">11:00 pm</option>
|
|
<option value="hh:mma">11:00pm</option>
|
|
<option value="hh:mm A">11:00 PM</option>
|
|
<option value="hh:mmA">11:00pm</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-4 form-group">
|
|
<label class="control-label">{{translate 'Currency' scope='Import'}}</label>
|
|
<select class="form-control" id="import-currency">
|
|
{{#each currencyList}}
|
|
<option value="{{./this}}">{{./this}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h5 class="panel-title">{{translate 'Preview' scope='Import'}}</h5></div>
|
|
<div class="panel-body">
|
|
<div id="import-preview" style="overflow-x: auto; overflow-y: hidden;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="padding-bottom: 10px;" class="clearfix">
|
|
<button class="btn btn-primary pull-right hidden" data-action="next">{{translate 'Next'}}</button>
|
|
</div>
|
|
|