Sha256: 00b7c47ccb44cef475895240b0879b08dc7c4fe340e4595056a0b564d527f683

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

- unless @data.empty?
  h2.uk-text-success <i class="uk-icon-#{@menu_icons[@current_item]} uk-icon-medium "></i>&nbsp;&nbsp;Modify Splash log monitoring : #{@data[:label]}
- else
  h2.uk-text-success <i class="uk-icon-#{@menu_icons[@current_item]} uk-icon-medium "></i>&nbsp;&nbsp;Add new Splash log monitoring

script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.2/jquery.validate.min.js"

form.uk-form.uk-form-horizontal#query action="/save_log" method="POST"
  label.uk-form-label for="label" Label
  <input class="uk-form-width-large" id="label" type="text" placeholder="label" name="label" value="#{@data[:label].to_s}" required>
  div &nbsp;
  label.uk-form-label for="pattern" Pattern
  <input class="uk-form-width-large" id="pattern" type="text" placeholder="pattern" name="pattern" value="#{@data[:pattern]}" required>
    div &nbsp;
  label.uk-form-label for="log" Log file
  <input class="uk-form-width-large" id="log" type="text" placeholder="log" name="log" value="#{@data[:log]}" required>
  div &nbsp;
  - unless @data.empty?
    input type="hidden" name="update" value="true"
    input type="hidden" name="old_label" value="#{@data[:old_label].to_s}"
  div.uk-align-right
    input.uk-button.uk-button-small-primary type="submit" value="Submit"
javascript:
  $("#query").validate();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prometheus-splash-0.8.4 lib/splash/webadmin/portal/views/log_form.slim
prometheus-splash-0.8.3 lib/splash/webadmin/portal/views/logs_form.slim
prometheus-splash-0.8.2 lib/splash/webadmin/portal/views/logs_form.slim