Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
Add time zone option to flexible date converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jochen Schalanda committed May 21, 2015
1 parent c6d47bf commit b1a253f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions app/views/system/inputs/extractors/converters/flexdate.scala.html
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>

0 comments on commit b1a253f

Please sign in to comment.