You're repeating yourself here. The

     <div class="formactions dangerzone">
        <h3><%= t('.delete_zone') %></h3>
        <div class="content">

stuff show up all three times. So maybe move the if/else inside that?