Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887831
_form.html.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 10, 5:43 AM
Size
1 KB
Mime Type
text/plain
Expires
Tue, Aug 12, 5:43 AM (12 h, 40 m)
Engine
blob
Format
Raw Data
Handle
229872
Attached To
rARCHIVING archiving
_form.html.erb
View Options
<%=
bootstrap_form_for
(
@schedule
,
url
:
url
,
method
:
method
,
layout
:
:horizontal
,
label_col
:
'col-xs-3'
,
control_col
:
'col-xs-8'
)
do
|
f
|
%>
<%=
f
.
text_field
:name
,
required
:
true
%>
<hr />
<%
if
[
'schedule_runs.day'
,
'schedule_runs.month'
,
'scheduled_runs.time'
]
-
@schedule
.
errors
.
keys
%>
<div id="error_explanation" class="has-error">
<ul>
<%
@schedule
.
errors
.
full_messages
.
each
do
|
message
|
%>
<li><span class="help-block">
<%=
message
%>
</span></li>
<%
end
%>
</ul>
</div>
<%
end
%>
<%=
f
.
fields_for
:schedule_runs
,
@schedule
.
schedule_runs
do
|
r
|
%>
<div class="schedule_run_form">
<%=
r
.
select
:level
,
options_for_select
(
ScheduleRun
.
options_for_select
,
r
.
object
.
level
)
%>
<%=
r
.
text_field
:month
,
placeholder
:
'[month | month-range]'
%>
<p class="col-xs-10 col-xs-offset-1 help-block text-right">eg: jan-mar, feb, monthly</p>
<%=
r
.
text_field
:day
,
placeholder
:
'[week | week-range] day | day-range'
,
required
:
true
%>
<p class="col-xs-10 col-xs-offset-1 help-block text-right">
eg: first sun, second-fifth mon, mon-sat
</p>
<%=
r
.
text_field
:time
,
placeholder
:
'HH:MM'
,
required
:
true
%>
<hr />
</div>
<%
end
%>
<div class="col-xs-1 col-xs-offset-10">
<%=
link_to
'#'
,
class
:
'schedule_run_form_remove'
,
style
:
'display:none;'
do
%>
<span class="glyphicon glyphicon-remove text-danger"></span>
<%
end
%>
</div>
<div class="col-xs-1 col-xs-offset-10">
<%=
link_to
'#'
,
class
:
'schedule_run_form_plus'
do
%>
<span class="glyphicon glyphicon-plus text-success"></span>
<%
end
%>
</div>
<%=
(
hidden_field_tag
:job_id
,
@job_id
)
if
@job_id
%>
<div class="form-group">
<div class="col-xs-offset-3 col-xs-8">
<%=
f
.
submit
class
:
'btn btn-success'
%>
</div>
</div>
<%
end
%>
Event Timeline
Log In to Comment