54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
|
<style>
|
||
|
.modal-body{
|
||
|
font-size: 1.5em;
|
||
|
}
|
||
|
.help_btn{
|
||
|
cursor: pointer;
|
||
|
padding: 0em 0.475em;
|
||
|
font-size: 1.25em;
|
||
|
border-radius: 1em;
|
||
|
margin-left: 0.5em;
|
||
|
background-color: rgb(210, 106, 2);
|
||
|
border-color: rgb(210, 106, 2);
|
||
|
color: white;
|
||
|
}
|
||
|
</style>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t("ruling_bus.app_key") %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field :app_key %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t("ruling_bus.app_id") %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field :app_id %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t("ruling_bus.update_interval") %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field :update_interval %> <%= t('ruling_bus.time.second') %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t("ruling_bus.update_front_interval") %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field :update_route_interval %> <%= t('ruling_bus.time.minute') %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t("ruling_bus.update_front_interval") %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field :update_front_interval %> <%= t('ruling_bus.time.second') %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Form Actions -->
|
||
|
<div class="form-actions">
|
||
|
<%#= f.hidden_field :time_offset, :id=>"weather_timeoffset" %>
|
||
|
<% referer = request.referer rescue nil %>
|
||
|
<% referer = get_referer_url if referer.blank? || request.host != URI.parse(URI.encode(referer)).host %>
|
||
|
<%= f.submit t('ruling_bus.save'), class: 'btn btn-primary' %>
|
||
|
<input type="hidden" name="referer_url" value="<%= referer %>">
|
||
|
<%= link_to t('cancel'), referer, :class=>"btn" %>
|
||
|
</div>
|