          <span class="input-group-btn">
                  <button type="button" ng-click="generateRandomKey(4, true)" ng-disabled="editBallot" class="btn btn-secondary">New Shortcode</button>
                </span>
            </div>
            <span ng-show="errors.key" class="text-danger">{{errors.key}}</span>
            <span ng-show="success.key" class="text-success">{{success.key}}</span>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn b