Skip to content

Commit

Permalink
adjust date time picker template
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonweng committed May 4, 2018
1 parent 3058c3c commit 0f1275f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions views/actions/action_bar/5.publish2.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
<label class="qor-field__label">{{t "qor_publish.action_bar.time_travel" "Time Travel"}}</label>
<input class="qor-datetimepicker__input qor-filter__scheduled-time" placeholder="YYYY-MM-DD" data-search-param="publish_scheduled_time" type="text" value="{{get_publish_schedule_time .}}" />
<div class="qor-field__datetimepicker-button">
<button data-toggle="qor.datepicker" data-target-input=".qor-datetimepicker__input" class="qor-action__datepicker" type="button">
<button data-toggle="qor.datepicker" class="qor-action__datepicker" type="button">
<i class="material-icons">date_range</i>
</button>

<button data-toggle="qor.timepicker" data-target-input=".qor-datetimepicker__input" class="qor-action__timepicker" type="button">
<button data-toggle="qor.timepicker" class="qor-action__timepicker" type="button">
<i class="material-icons">access_time</i>
</button>
</div>
Expand Down
8 changes: 4 additions & 4 deletions views/themes/publish2/actions/9.publish2.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
<div class="qor-field__edit qor-field__datetimepicker" data-picker-type="datetime">
<input class="mdl-textfield__input qor-datetimepicker__input qor-pulish2__action-input qor-pulish2__action-start" data-start-date="true" data-action-type="scheduledstart" placeholder="{{meta_placeholder $scheduledStartAtMeta $context "YYYY-MM-DD HH:MM"}}" type="text" value="{{render_meta $result $scheduledStartAtMeta}}" {{if $scheduleEventIDMeta}}{{if $scheduleEvent.ID}}disabled{{end}}{{else if not (has_update_permission $scheduledStartAtMeta)}}disabled{{end}}>
<div class="qor-action__picker-button" {{if $scheduleEventIDMeta}}{{if $scheduleEvent.ID}}style="display:none"{{end}}{{end}}>
<button data-toggle="qor.datepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<button data-toggle="qor.datepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<i class="material-icons">date_range</i>
</button>

<button data-toggle="qor.timepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<button data-toggle="qor.timepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<i class="material-icons">access_time</i>
</button>
</div>
Expand All @@ -98,11 +98,11 @@
<div class="qor-field__edit qor-field__datetimepicker" data-picker-type="datetime">
<input class="mdl-textfield__input qor-datetimepicker__input qor-pulish2__action-input qor-pulish2__action-end" data-start-date="true" data-action-type="scheduledend" placeholder="{{meta_placeholder $scheduledEndAtMeta $context "YYYY-MM-DD HH:MM"}}" type="text" value="{{render_meta $result $scheduledEndAtMeta}}" {{if $scheduleEventIDMeta}}{{if $scheduleEvent.ID}}disabled{{end}}{{else if not (has_update_permission $scheduledEndAtMeta)}}disabled{{end}}>
<div class="qor-action__picker-button" {{if $scheduleEventIDMeta}}{{if $scheduleEvent.ID}}style="display:none"{{end}}{{end}}>
<button data-toggle="qor.datepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<button data-toggle="qor.datepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<i class="material-icons">date_range</i>
</button>

<button data-toggle="qor.timepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<button data-toggle="qor.timepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<i class="material-icons">access_time</i>
</button>
</div>
Expand Down
8 changes: 4 additions & 4 deletions views/themes/publish2/actions/index/5.publish2.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
<input class="mdl-textfield__input qor-datetimepicker__input qor-filter__start" data-search-param="schedule_start_at" placeholder="{{meta_placeholder $scheduleStartAtMeta $context $scheduleStartAtMeta.Label}}" type="text" value="" />
</div>
<div>
<button data-toggle="qor.datepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<button data-toggle="qor.datepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<i class="material-icons">date_range</i>
</button>

<button data-toggle="qor.timepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<button data-toggle="qor.timepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<i class="material-icons">access_time</i>
</button>
</div>
Expand All @@ -57,11 +57,11 @@
<input class="mdl-textfield__input qor-datetimepicker__input qor-filter__end" data-search-param="schedule_end_at" placeholder="{{meta_placeholder $scheduleEndAtMeta $context $scheduleEndAtMeta.Label}}" type="text" value="" />
</div>
<div>
<button data-toggle="qor.datepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<button data-toggle="qor.datepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__datepicker" type="button">
<i class="material-icons">date_range</i>
</button>

<button data-toggle="qor.timepicker" data-target-input=".qor-datetimepicker__input" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<button data-toggle="qor.timepicker" class="mdl-button mdl-js-button mdl-button--icon qor-action__timepicker" type="button">
<i class="material-icons">access_time</i>
</button>
</div>
Expand Down

0 comments on commit 0f1275f

Please sign in to comment.