Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
79361b20
Commit
79361b20
authored
Dec 31, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add js-requires-input to form
parent
b7f49aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
app/views/admin/broadcast_messages/index.html.haml
app/views/admin/broadcast_messages/index.html.haml
+2
-3
No files found.
app/views/admin/broadcast_messages/index.html.haml
View file @
79361b20
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
%i
.fa.fa-bullhorn
%i
.fa.fa-bullhorn
%span
Your message here
%span
Your message here
=
form_for
[
:admin
,
@broadcast_message
],
html:
{
class:
'broadcast-message-form form-horizontal'
}
do
|
f
|
=
form_for
[
:admin
,
@broadcast_message
],
html:
{
class:
'broadcast-message-form form-horizontal
js-requires-input
'
}
do
|
f
|
-
if
@broadcast_message
.
errors
.
any?
-
if
@broadcast_message
.
errors
.
any?
.alert.alert-danger
.alert.alert-danger
-
@broadcast_message
.
errors
.
full_messages
.
each
do
|
msg
|
-
@broadcast_message
.
errors
.
full_messages
.
each
do
|
msg
|
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
.col-sm-10
.col-sm-10
=
f
.
text_area
:message
,
class:
"form-control"
,
rows:
2
,
required:
true
=
f
.
text_area
:message
,
class:
"form-control"
,
rows:
2
,
required:
true
%div
%div
=
link_to
'#'
,
class:
'js-toggle-colors-link'
do
=
link_to
'Customize colors'
,
'#'
,
class:
'js-toggle-colors-link'
Customize colors
.form-group.js-toggle-colors-container.hide
.form-group.js-toggle-colors-container.hide
=
f
.
label
:color
,
"Background Color"
,
class:
'control-label'
=
f
.
label
:color
,
"Background Color"
,
class:
'control-label'
.col-sm-10
.col-sm-10
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment