﻿<div ng-controller="CreateBasicPageController">
    <div>
        <h2>Regular Poller?</h2>
        Register for more config options. It's free!
    </div>

    <form name="quickPollForm">
        <div id="question-block">
            Your Question <br />
            <input id="question" placeholder="E.g. Where should we go for lunch?" ng-model="pollQuestion" required />
        </div>

        <div id="quickpoll-block">
            <button type="submit" class="inactive-btn shadowed" ng-click="createPoll(pollQuestion)" ng-disabled="quickPollForm.$invalid">Quick Poll</button>
        </div>
    </form>

    <h3 class="centered-text horizontal-ruled">or</h3>

    <div id="register-block">
        <button class="active-btn shadowed" ng-click="openLoginDialog()">Sign In</button>
        <button class="active-btn shadowed" ng-click="openRegisterDialog()">Register</button>
    </div>
</div>

﻿<div ng-controller="CreateBasicPageController">
    <div>
        <h2>Regular Poller?</h2>
        Register for more config options. It's free!
    </div>

    <form name="quickPollForm" ng-submit="createPoll(pollQuestion)">
        <div id="question-block">
            Your Question <br />
            <input id="question" placeholder="E.g. Where should we go for lunch?" ng-model="pollQuestion" required />
        </div>

        <div id="quickpoll-block">
            <button type="submit" class="inactive-btn shadowed" ng-disabled="quickPollForm.$invalid">Quick Poll</button>
        </div>
    </form>

    <h3 class="centered-text horizontal-ruled">or</h3>

    <div id="register-block">
        <button class="active-btn shadowed" ng-click="openLoginDialog()">Sign In</button>
        <button class="active-btn shadowed" ng-click="openRegisterDialog()">Register</button>
    </div>
</div>

Return now submits quick poll
Return now submits quick poll

Change ng-click on button to ng-submit on form to allow Return key to
submit form.
