bus/app/views/admin/ruling_buses/_setting_form.html.erb

54 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-08-04 03:11:10 +00:00
<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>