Skip to content

Instantly share code, notes, and snippets.

@gabrielhurley
Created July 5, 2012 21:23
Show Gist options
  • Save gabrielhurley/3056565 to your computer and use it in GitHub Desktop.
Save gabrielhurley/3056565 to your computer and use it in GitHub Desktop.
structure for project membership HTML
<div class="combo-box">
<div class="header"># Title, actions, filters</div>
<ul class="items">
<li class="item" data-user-id="<user_id>">
<span># Name</span>
<a href="#add/remove"># Add/Remove</a>
<ul class="role dropdown"> # For "included" box only
<li data-role-id="<role_id>"># Role name</li>
</ul>
</li>
</ul>
</div>
<div class="hide">
<select name="role_<role_id>_users"> # One for each role
<option value="<user_id>"># User name</option> # Added for each user that's available
<option value="<user_id>" selected="selected"># User name</option> # Selected to mark as having that role
</select>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment