sahana / WACOP

Washington State Common Operating Picture
0 stars 0 forks source link

Event card implementation #2

Closed dhornbein closed 7 years ago

dhornbein commented 7 years ago

Event cards display event information in a card view.

Data

event-card

HTML Structure

<aside class="card-event">
  <header class="status-bar highlight">
    <ul class="status-bar-left">
      <li class="item primary status">Active</li>
    </ul>
    <ul class="controls">
      <li class="item bookmark"><i class="fa-bookmark fa"></i></li>
      <li class="item edit"><i class="fa-pencil fa"></i></li>
    </ul>
  </header>
  <div class="body">
    <h1 class="title">Event Title</h1>
    <div class="event-date-location">
      <div class="adr">
        <span class="street-address">665 3rd St</span>,
        <div class="extended-address">Suite 207</div>
        <span class="locality">San Francisco</span>,
        <span class="region">CA</span>
        <span class="postal-code">94107</span>
      </div>
      <span class="date-label">Zero hour:</span> <span class="date">Oct 26, 2016 @ 16:04</span>
      <br>
      <span class="date-label">Closed at:</span> <span class="date">Nov 16, 2016 @ 12:33</span>
    </div>
    <p class="meta">36 Incidents 298 Resources</p>
    <p class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis accusantium voluptatem, dolore praesentium laudantium ad</p>
  </div>
  <footer class="footer">
    <p><a href="#" class="more">Read More</a></p>
  </footer>
</aside>

Notes

flavour commented 7 years ago

Edit button should display only if user has permissions to edit or it should display anyway & give a suitable error if the user doesn't have permissions?

flavour commented 7 years ago

Edit button (like Bookmark) should have a tooltip?

flavour commented 7 years ago

Edit should open a Modal or open the Event profile page?

flavour commented 7 years ago

I assume if not closed then we simply don't include that SPAN at all?

dhornbein commented 7 years ago

re: hide "closed at" span, yes if there is no closed date don't display the span

I'll await Devin/Katie's feedback on your other questions.

fffalcon commented 7 years ago

edit button:

if we need to, we can create a more effective/obvious prompt for users to click on the names of things to go to their pages. it could be a hover state, an icon, a color, or a link next to it.

thoughts?

flavour commented 7 years ago

"it is assumed that clicking edit on a block of content will allow the user to immediately edit the content inside the block" Do we have examples of that in WACOP currently?