Permalink
Browse files

- Added UI to Group Detail block to manage group member workflow trig…

…gers
  • Loading branch information...
azturner committed May 19, 2015
1 parent b37adb4 commit c9efc5b107f4121d674db8fb474506a620053fc0
@@ -170,6 +170,28 @@
</div>
</Rock:PanelWidget>
<Rock:PanelWidget ID="wpMemberWorkflowTriggers" runat="server" Title="Group Member Workflows" >
<Rock:NotificationBox ID="NotificationBox3" runat="server" NotificationBoxType="Info"
Text="The workflow(s) that should be launched when group members are changed in this group." />
<div class="grid">
<Rock:Grid ID="gMemberWorkflowTriggers" runat="server" EnableResponsiveTable="false" AllowPaging="false" DisplayType="Light" RowItemText="Workflow">
<Columns>
<Rock:ReorderField />
<Rock:RockBoundField DataField="Name" HeaderText="Name" />
<Rock:RockBoundField DataField="WorkflowType.Name" HeaderText="Workflow" />
<Rock:RockTemplateField HeaderText="When">
<ItemTemplate>
<%# FormatTriggerType( Eval("TriggerType"), Eval("TypeQualifier") ) %>
</ItemTemplate>
</Rock:RockTemplateField>
<Rock:BoolField DataField="IsActive" HeaderText="Active" />
<Rock:EditField OnClick="gMemberWorkflowTriggers_Edit" />
<Rock:DeleteField OnClick="gMemberWorkflowTriggers_Delete" />
</Columns>
</Rock:Grid>
</div>
</Rock:PanelWidget>
<div class="actions">
<asp:LinkButton ID="btnSave" runat="server" AccessKey="s" Text="Save" CssClass="btn btn-primary" OnClick="btnSave_Click" />
<asp:LinkButton ID="btnCancel" runat="server" AccessKey="c" Text="Cancel" CssClass="btn btn-link" CausesValidation="false" OnClick="btnCancel_Click" />
@@ -276,5 +298,33 @@
</Content>
</Rock:ModalDialog>
<Rock:ModalDialog ID="dlgMemberWorkflowTriggers" runat="server" OnSaveClick="dlgMemberWorkflowTriggers_SaveClick" OnCancelScript="clearActiveDialog();" ValidationGroup="Trigger">
<Content>
<asp:HiddenField ID="hfTriggerGuid" runat="server" />
<asp:ValidationSummary ID="vsTrigger" runat="server" HeaderText="Please Correct the Following" CssClass="alert alert-danger" ValidationGroup="Trigger" />
<Rock:NotificationBox ID="nbInvalidWorkflowType" runat="server" NotificationBoxType="Danger" Visible="false"
Text="The Workflow Type is missing or invalid. Make sure you selected a valid Workflow Type (and not a category)." />
<div class="row">
<div class="col-md-6">
<Rock:RockTextBox ID="tbTriggerName" runat="server" Label="Name" Required="true" ValidationGroup="Trigger" />
</div>
<div class="col-md-6">
<Rock:RockCheckBox ID="cbTriggerIsActive" runat="server" Text="Active" ValidationGroup="Trigger" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<Rock:WorkflowTypePicker ID="wtpWorkflowType" runat="server" Label="Launch Workflow" Required="true" ValidationGroup="Trigger"
Help="The workflow type to launch." />
</div>
<div class="col-md-6">
<Rock:RockDropDownList ID="ddlTriggerType" runat="server" Label="When" Required="true" ValidationGroup="Trigger" AutoPostBack="true" OnSelectedIndexChanged="ddlTriggerType_SelectedIndexChanged" />
<Rock:RockDropDownList ID="ddlTriggerMemberStatus" runat="server" Label="With Member Status of" ValidationGroup="Trigger" />
<Rock:RockDropDownList ID="ddlTriggerMemberRole" runat="server" Label="With Member Role of" ValidationGroup="Trigger" DataTextField="Name" DataValueField="Guid" />
</div>
</div>
</Content>
</Rock:ModalDialog>
</ContentTemplate>
</asp:UpdatePanel>
Oops, something went wrong.

0 comments on commit c9efc5b

Please sign in to comment.