Simple Sinatra voting website.
git clone git://
Log | Files | Refs | README | LICENSE

index.erb (2236B)

<!DOCTYPE html>
    <title>Veto Vote — Create a Poll</title>
    <%= head_tags %>
    <div class="container">
      <div class="row">
        <h1>Create a poll</h1>

      <form id="create" action="/new" method="POST">
        <div class="row">
          <div class="six columns">
            Poll Title
          <div class="six columns in">
            <input type="text" name="title" id="title" autocomplete="off" placeholder="Name of your poll">

        <div class="row">
          <div class="three columns">
            Poll UID
          <div class="three columns right">
            <span class="url"><span>
          <div class="six columns in">
            <input type="text" name="code" id="code" autocomplete="off" placeholder="">

        <div class="row">
          <div class="twelve columns" style="margin-bottom: 1em">
            <input type="checkbox" checked id="other" name="other">
            <label for="other" style="cursor: pointer; user-select: none;">
              Allow for respondents to write in alternative votes?

        <div class="row voting-options">
          <div class="twelve columns">
            <span id="word-primary">Primary </span>Voting Options:
            <ul id="options">
              <div class="option">
                <input type="text" autocomplete="off" name="addition" id="addition" placeholder="...">
                <input type="button" class="add-option" value="Add option">

        <br />
        <input id="submit-poll" type="submit" name="submit" value="Make Poll">

      .github {
        position: fixed;
        bottom: 20px;
        right: 20px;
    <a class="github" href="">
      <img src="" alt="GitHub" />

    <script src="/main.js"></script>
    <script src="/new.js"></script>