       title           : 'Resolved Invitations'
       noItemFound     : 'No resolved invitations.'
       noMoreItemFound : 'No more resolved invitations found.'
+
+
+  createMultiuseInvitation: (formData) ->
+    KD.remote.api.JInvitation.createMultiuse formData, ->
+      console.log {arguments}
+
+  showMultiuseModal:->
+    modal = new KDModalViewWithForms
+      title                   : "Create a multiuse invitation code"
+      tabs                    :
+        forms                 :
+          createInvitation    :
+            callback          : @bound 'createMultiuseInvitation'
+            buttons           :
+              Save            :
+                itemClass     : KDButtonView
+                type          : 'submit'
+                loader        :
+                  color       : '#444444'
+                  diameter    : 12
+              Cancel          :
+                style         : 'modal-cancel'
+                callback      : -> modal.destroy()
+            fields            :
+              invitationCode  :
+                label         : "Invitation code"
+                itemClass     : KDInputView
+                name          : "code"
+                placeholder   : "Enter a creative invitation code!"
+              maxUses         :
+                label         : "Maximum uses"
+                itemClass     : KDInputView
+                name          : "maxUses"
+                placeholder   : "How many people can redeem this code?"
+
+
+    form = modal.modalTabs.forms.createInvitation
+    form.on 'FormValidationFailed', => form.buttons.Send.hideLoader()
+
+    return modal
 
   showModalForm:(options)->
     modal = new KDModalViewWithForms

  pistachio:->
    """
    <div class="button-bar">
      {{> @batchApproveButton}} {{> @inviteByEmailButton}} {{> @inviteByUsernameButton}}
    </div>
    <section class="formline status-quo">
      <h2>Status quo</h2>

    [@resRequestsListController, @resolvedRequestsList]       = @prepareResolvedRequestsList()
    [@resInvitationsListController, @resolvedInvitationsList] = @prepareResolvedInvitationsList()

    @createMultiuseButton = new KDButtonView
      title    : 'Create invitation code'
      cssClass : 'clean-gray'
      callback : @bound 'showMultiuseModal'
    @inviteByEmailButton = new KDButtonView
      title    : 'Invite by Email'
      cssClass : 'clean-gray'
