This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add time zone option to flexible date converter
- Loading branch information
Jochen Schalanda
committed
May 21, 2015
1 parent
c6d47bf
commit b1a253f
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
18 changes: 15 additions & 3 deletions
18
app/views/system/inputs/extractors/converters/flexdate.scala.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
@(enabled: Boolean = false) | ||
@(enabled: Boolean = false, converter: org.graylog2.restclient.models.Converter = null) | ||
|
||
<div class="xtrc-converter xtrc-converter-flexdate" @if(!enabled) { style="display:none;" } > | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" value="enabled" name="converter_flexdate" @if(enabled) { checked="checked" } /> | ||
Flexibly parse to date | ||
|
||
@views.html.partials.support.bubble("general/extractors#flexdate-converter") | ||
</label> | ||
</div> | ||
<div class="xtrc-converter-subfield"> | ||
<div class="form-group"> | ||
<label for="converter_flexdate_time_zone"> | ||
Time zone ID: @views.html.partials.support.bubble("general/extractors#flexdate-converter") | ||
</label> | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
<input name="converter_flexdate_time_zone" id="converter_flexdate_time_zone" | ||
type="text" class="form-control" | ||
@if(converter != null) { value="@converter.getConfig.get("time_zone")" } /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |