Note that there are some explanatory texts on larger screens.

plurals
  1. POHide button in rails
    primarykey
    data
    text
    <p>when i hide a button in rails then other buttons move to that place i want to place the button in a parallel line and the place of other buttons should be clear if those are not visible to that case.... my code is as following:</p> <pre><code>&lt;div class=" list_el"&gt; &lt;span class="pull-right" style="text-align:right"&gt; &lt;%if accountant?%&gt; &lt;%= link_to_if(!crm_donation["received"], "Approved", crm_donations_path(:id =&gt; crm_donation["id"]), :class =&gt; "label label-success") if !crm_donation["received"]%&gt; &lt;%end%&gt; &lt;%= link_to "rollback", edit_crm_donation_rollback_path(crm_donation["id"]), :class =&gt; 'label label-info' if supervisor? &amp;&amp; crm_donation["rollback_id"].blank?%&gt; &lt;%= link_to "delete", crm_donation_path(crm_donation["id"]), :class =&gt; 'label label-important1', method: :delete, data: { confirm: 'Are you sure?' } if accountant? &amp;&amp; !crm_donation["received"]%&gt; &lt;%= link_to "details", crm_donation_path(crm_donation["id"]), :class =&gt; 'label label-success' %&gt; &lt;%if !accountant?%&gt; &lt;%= link_to "pdf", "/letter/#{crm_donation["id"]}.pdf", :class =&gt; "label label-info1", :target=&gt;"_blank"%&gt; &lt;%if crm_donation["email_sent"]%&gt; &lt;%=link_to_if(crm_donation["received"], "email", donation_email_sent_path(crm_donation["email_sent"]), :class=&gt;"label label-emails") { label_tag( "email" , "email",:class =&gt; "label") }%&gt; &lt;%else%&gt; &lt;%if !crm_donation["rollback_id"]%&gt; &lt;%=link_to_if(crm_donation["received"], "email", new_donation_email_sent_path(:donation_id =&gt; crm_donation["id"]), :class=&gt;"label label-emailf") { label_tag( "email" , "email",:class =&gt; "label") } %&gt; &lt;%end%&gt; &lt;%end%&gt; &lt;%end%&gt; &lt;/span&gt; &lt;/div&gt; </code></pre> <p>button positions are like this:</p> <pre><code> details | pdf rollback | details | pdf | email </code></pre> <p>and i want to do like this:</p> <pre><code> details | pdf rollback | details | pdf | email </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload