Sha256: 753c2314b23781641c0ef12bc09f7dd3cbadcafc3216a9c27b22275bf8aa6e09

Contents?: true

Size: 882 Bytes

Versions: 5

Compression:

Stored size: 882 Bytes

Contents

<% if root["_open"] %>
  <% if indent %><div class="indent"><% end %>
    <div id="<%=id%>">
      <div class="question-open" id="<%=id%>-open">
        <h2 class="question_title"><%=title != nil ? title : root["_question"]%></h2>
        <% content.call(root, answer) %>
      </div>
    </div>
  <% if indent %> </div"><% end %>
<% end %>

<% if !root["_open"] && root["_answered"] %>
  <% if indent %><div class="indent"><% end %>
    <div id="<%=id%>">
      <div class="question-closed" id="<%=id%>-closed">
        <div class="title question_title" id="<%=id%>-rollup"><%=title != nil ? title : root["_question"]%></div>
        <div class="answer">
          <button id="<%=id%>-change" class="button-change-answer" value="<%=path%>" name="change_answer_path"><%=root['_summary']%></button>
        </div>
      </div>
    </div>
  <% if indent %> </div"><% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
doop-0.0.5.2 demo/app/views/doop/_question.html.erb
doop-0.0.5.1 demo/app/views/doop/_question.html.erb
doop-0.0.5 demo/app/views/doop/_question.html.erb
doop-0.0.4.2 lib/generators/doopgovuk/templates/app/views/doop/_question.html.erb
doop-0.0.4.1 lib/generators/doopgovuk/templates/app/views/doop/_question.html.erb