Haml syntax modified
This commit is contained in:
parent
481fcc9f60
commit
d38a1334ad
1 changed files with 4 additions and 4 deletions
|
|
@ -71,10 +71,10 @@
|
||||||
"data-content" => user.popup_details,
|
"data-content" => user.popup_details,
|
||||||
"data-original-title" => ""
|
"data-original-title" => ""
|
||||||
%td
|
%td
|
||||||
- if current_user.id == user.id or user.role_ids.include? 3
|
- if current_user.id == user.id or user.role_ids.include? 3
|
||||||
=link_to 'Delete',admin_user_path(user), :method => :delete , :data => {:confirm => 'Are you sure ?'}, :disabled => true,:class => "btn btn-primary disabled btn-danger",:role => "button"
|
=link_to 'Delete',admin_user_path(user), :method => :delete , :data => {:confirm => 'Are you sure ?'}, :disabled => true,:class => "btn btn-primary disabled btn-danger",:role => "button"
|
||||||
- else
|
- else
|
||||||
=link_to 'Delete',admin_user_path(user), :method=> :delete , :data=> {:confirm => 'Are you sure ?'},:class => "btn btn-primary btn-danger"
|
=link_to 'Delete',admin_user_path(user), :method=> :delete , :data=> {:confirm => 'Are you sure ?'},:class => "btn btn-primary btn-danger"
|
||||||
|
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue