mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 11:23:48 +01:00
#381: date fields manually editable
This commit is contained in:
parent
19ac90688e
commit
8a85830bd3
@ -104,7 +104,7 @@ $provide.value("$locale", {
|
||||
"mediumDate": "dd.MM.y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd.MM.yy HH:mm",
|
||||
"shortDate": "dd.MM.yy",
|
||||
"shortDate": "dd.MM.yyyy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
|
@ -104,7 +104,7 @@ $provide.value("$locale", {
|
||||
"mediumDate": "MMM d, y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "M/d/yy h:mm a",
|
||||
"shortDate": "M/d/yy",
|
||||
"shortDate": "MM/dd/yyyy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
|
@ -86,7 +86,7 @@ $provide.value("$locale", {
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "H:mm:ss",
|
||||
"short": "d/M/yy H:mm",
|
||||
"shortDate": "d/M/yy",
|
||||
"shortDate": "dd/MM/yyyy",
|
||||
"shortTime": "H:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
|
@ -86,7 +86,7 @@ $provide.value("$locale", {
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd/MM/y HH:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortDate": "dd/MM/yyyy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
|
@ -86,7 +86,7 @@ $provide.value("$locale", {
|
||||
"mediumDate": "y\u5e74M\u6708d\u65e5",
|
||||
"mediumTime": "ah:mm:ss",
|
||||
"short": "y/M/d ah:mm",
|
||||
"shortDate": "y/M/d",
|
||||
"shortDate": "yyyy/MM/dd",
|
||||
"shortTime": "ah:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
|
@ -86,7 +86,7 @@ $provide.value("$locale", {
|
||||
"mediumDate": "y\u5e74M\u6708d\u65e5",
|
||||
"mediumTime": "ah:mm:ss",
|
||||
"short": "y/M/d ah:mm",
|
||||
"shortDate": "y/M/d",
|
||||
"shortDate": "yyyy/MM/dd",
|
||||
"shortTime": "ah:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
|
@ -36,16 +36,21 @@
|
||||
<p class="help-block" ng-show="documentForm.description.$error.maxlength && documentForm.$dirty">{{ 'validation.too_long' | translate }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group" ng-class="{ 'has-error': !documentForm.createDate.$valid }">
|
||||
<label class="col-sm-2 control-label" for="inputCreateDate">{{ 'document.creation_date' | translate }}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" id="inputCreateDate"
|
||||
current-text="{{ 'directive.datepicker.current' | translate }}"
|
||||
clear-text="{{ 'directive.datepicker.clear' | translate }}"
|
||||
close-text="{{ 'directive.datepicker.close' | translate }}"
|
||||
ng-readonly="true" uib-datepicker-popup="{{ dateFormat }}" class="form-control"
|
||||
ng-model="document.create_date" datepicker-options="{ startingDay: 1, showWeeks: false }"
|
||||
ng-click="datepickerOpened = true" is-open="datepickerOpened" ng-disabled="fileIsUploading" />
|
||||
<div class="input-group">
|
||||
<input type="text" id="inputCreateDate" name="createDate"
|
||||
current-text="{{ 'directive.datepicker.current' | translate }}"
|
||||
clear-text="{{ 'directive.datepicker.clear' | translate }}"
|
||||
close-text="{{ 'directive.datepicker.close' | translate }}"
|
||||
uib-datepicker-popup="{{ dateFormat }}" class="form-control"
|
||||
ng-model="document.create_date" datepicker-options="{ startingDay: 1, showWeeks: false }"
|
||||
is-open="datepickerOpened" ng-disabled="fileIsUploading" />
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default" ng-click="datepickerOpened = true" ng-disabled="fileIsUploading"><i class="fas fa-calendar"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@ -58,7 +63,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="inputFiles">{{ 'document.edit.new_files' | translate }}</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="col-sm-10">
|
||||
<input type="file" ngf-select class="form-control" id="inputFiles" ngf-multiple="true" ng-model="newFiles" ng-disabled="fileIsUploading"></input>
|
||||
</div>
|
||||
<div class="col-sm-4" ng-if="orphanFiles.length > 0"
|
||||
@ -84,14 +89,18 @@
|
||||
name="{{ meta.id }}" ng-model="meta.value" autocomplete="off"
|
||||
ng-disabled="fileIsUploading" />
|
||||
|
||||
<input ng-if="meta.type == 'DATE'"
|
||||
type="text" id="input{{ meta.id }}" name="{{ meta.id }}"
|
||||
current-text="{{ 'directive.datepicker.current' | translate }}"
|
||||
clear-text="{{ 'directive.datepicker.clear' | translate }}"
|
||||
close-text="{{ 'directive.datepicker.close' | translate }}"
|
||||
ng-readonly="true" uib-datepicker-popup="{{ dateFormat }}" class="form-control"
|
||||
ng-model="meta.value" datepicker-options="{ startingDay: 1, showWeeks: false }"
|
||||
ng-click="datepickerOpenedMeta[meta.id] = true" is-open="datepickerOpenedMeta[meta.id]" ng-disabled="fileIsUploading" />
|
||||
<div class="input-group" ng-if="meta.type == 'DATE'">
|
||||
<input type="text" id="input{{ meta.id }}" name="{{ meta.id }}"
|
||||
current-text="{{ 'directive.datepicker.current' | translate }}"
|
||||
clear-text="{{ 'directive.datepicker.clear' | translate }}"
|
||||
close-text="{{ 'directive.datepicker.close' | translate }}"
|
||||
uib-datepicker-popup="{{ dateFormat }}" class="form-control"
|
||||
ng-model="meta.value" datepicker-options="{ startingDay: 1, showWeeks: false }"
|
||||
is-open="datepickerOpenedMeta[meta.id]" ng-disabled="fileIsUploading" />
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default" ng-click="datepickerOpenedMeta[meta.id] = true" ng-disabled="fileIsUploading"><i class="fas fa-calendar"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<input ng-if="meta.type == 'INTEGER'"
|
||||
ng-pattern="/^[0-9]*$/" class="form-control" type="text" id="input{{ meta.id }}"
|
||||
|
Loading…
Reference in New Issue
Block a user