Merge pull request #647 from cachethq/change-incident-timestamps
Allow changing of incident dates. Closes #615
This commit is contained in:
@@ -126,6 +126,21 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$('input[rel=datepicker-any]').datetimepicker({
|
||||
format: "DD/MM/YYYY HH:mm",
|
||||
sideBySide: true,
|
||||
icons: {
|
||||
time: 'ion-clock',
|
||||
date: 'ion-android-calendar',
|
||||
up: 'ion-ios-arrow-up',
|
||||
down: 'ion-ios-arrow-down',
|
||||
previous: 'ion-ios-arrow-left',
|
||||
next: 'ion-ios-arrow-right',
|
||||
today: 'ion-android-home',
|
||||
clear: 'ion-trash-a',
|
||||
}
|
||||
});
|
||||
|
||||
// Sortable components.
|
||||
var componentList = document.getElementById("component-list");
|
||||
if (componentList) {
|
||||
|
||||
@@ -37,12 +37,13 @@ return [
|
||||
|
||||
// Incidents form fields
|
||||
'incidents' => [
|
||||
'name' => 'Name',
|
||||
'status' => 'Status',
|
||||
'component' => 'Component',
|
||||
'message' => 'Message',
|
||||
'message-help' => 'You may also use Markdown.',
|
||||
'scheduled_at' => 'When to schedule the maintenance for?',
|
||||
'name' => 'Name',
|
||||
'status' => 'Status',
|
||||
'component' => 'Component',
|
||||
'message' => 'Message',
|
||||
'message-help' => 'You may also use Markdown.',
|
||||
'scheduled_at' => 'When to schedule the maintenance for?',
|
||||
'incident_time' => 'When did this incident occur?',
|
||||
|
||||
'templates' => [
|
||||
'name' => 'Name',
|
||||
|
||||
@@ -94,6 +94,11 @@
|
||||
<textarea name="incident[message]" class="form-control autosize" rows="5" required>{{ Input::old('incident.message') }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.incident_time') }}</label>
|
||||
<input type="text" name="incident[created_at]" class="form-control" rel="datepicker-any">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -50,6 +50,11 @@
|
||||
<textarea name="incident[message]" class="form-control autosize" rows="5" required>{{ $incident->message }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.incident_time') }}</label>
|
||||
<input type="text" name="incident[created_at]" class="form-control" rel="datepicker-any" value="{{ $incident->created_at_datetimepicker }}">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<input type="hidden" name="incident[id]" value={{$incident->id}}>
|
||||
|
||||
Reference in New Issue
Block a user