Skip to content

Instantly share code, notes, and snippets.

@documentcloud
Created December 16, 2009 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save documentcloud/258097 to your computer and use it in GitHub Desktop.
Save documentcloud/258097 to your computer and use it in GitHub Desktop.
<div class="title"><%= title %></div>
<% if (text) { %>
<div class="text"><%= text %></div>
<% } %>
<% if( mode == 'prompt' || mode == 'short_prompt') { %>
<div class="<%= mode %>">
<% if( mode == 'prompt') { %>
<textarea class="content"></textarea>
<% } else { %>
<input class="content" type="text" value="" />
<% } %>
</div>
<% } %>
<div class="controls">
<% if (buttons === "mini") { %>
<div class="minibutton ok"><span>ok</span></div>
<div class="minibutton cancel"><span>cancel</span></div>
<% } else { %>
<button class="ok default">ok</button>
<button class="cancel">cancel</button>
<% } %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment