Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
aab9a637
Commit
aab9a637
authored
May 03, 2018
by
Tugce Nur Tas
Browse files
nitfix
parent
a5ff5091
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/departments/_form.html.slim
View file @
aab9a637
=
simple_form_for
(
@department
)
do
|
f
|
=
simple_error_notice
f
.row
.col-xs-12.col-md-6.d
epartment_assoc
able
-
if
policy
(
D
epartment
).
can
_assoc
iate_user?
-
if
policy
(
D
epartment
).
can
_assoc
iate_user?
.col-xs-12.col-md-6.d
epartment_assoc
able
=
f
.
association
:user
,
as: :check_boxes
,
collection:
User
.
department_assocable
.
sort_by
(
&
:to_s
)
=
f
.
simple_fields_for
:contact
do
|
c
|
...
...
Write
Preview
Supports
Markdown
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