Checkpoint commit on Positions
This commit is contained in:
@@ -116,6 +116,10 @@
|
||||
$('span#<%= this.ClientID %>_SpanPeople span input.textbox-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
}
|
||||
|
||||
function <%=this.ClientID %>_clear() {
|
||||
<%=this.ClientID%>_val('');
|
||||
<%=this.ClientID%>_avatarUrl('');
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -10,14 +10,23 @@
|
||||
|
||||
onLoadSuccess: function () {
|
||||
$('.LocalAssignPerson').click(function () {
|
||||
<%= this.DropPerson.ClientID%>_val('');
|
||||
currentPosition = $(this).attr("positionId");
|
||||
$('#<%= this.ClientID %>_modalPositionName').text(decodeURIComponent($(this).attr("positionName")));
|
||||
<%= this.DropPerson.ClientID%>_clear();
|
||||
<%= this.DialogAdd.ClientID %>_open();
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: RowStyler
|
||||
});
|
||||
|
||||
$('#<%=this.ClientID%>_buttonAssign').click(function() {
|
||||
alert("foo!");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
var currentPosition = '';
|
||||
|
||||
</script>
|
||||
|
||||
@@ -41,15 +50,15 @@
|
||||
|
||||
<Swarmops5:ModalDialog id="DialogAdd" runat="server">
|
||||
<DialogCode>
|
||||
<h2>Assigning to ASDSADASDASDASD</h2>
|
||||
<h2><asp:Label runat="server" ID="LabelModalHeader"/></h2>
|
||||
<div class="entryFields">
|
||||
<Swarmops5Workaround:ComboPeople ID="DropPerson" runat="server" />​<br/>
|
||||
<asp:DropDownList ID="DropDuration" runat="server" />​<br/>
|
||||
<input type="button" class="buttonAccentColor" value="Assign"/>
|
||||
<input type="button" id="<%=this.ClientID %>_buttonAssign" class="buttonAccentColor" value="Assign"/>
|
||||
</div>
|
||||
<div class="entryLabels">
|
||||
Assign this person to the position:<br/>
|
||||
Assignment duration:
|
||||
<asp:Label ID="LabelAssignPersonTo" runat="server" /><br/>
|
||||
<asp:Label ID="LabelAssignmentDuration" runat="server" />
|
||||
</div>
|
||||
</DialogCode>
|
||||
</Swarmops5:ModalDialog>
|
||||
@@ -27,9 +27,13 @@ namespace Swarmops.Frontend.Controls.v5.Swarm
|
||||
this.LiteralHeaderAction.Text = Resources.Global.Global_Action;
|
||||
this.LiteralHeaderName.Text = Resources.Global.Swarm_AssignedPerson;
|
||||
this.LiteralHeaderPosition.Text = Resources.Global.Swarm_Position;
|
||||
this.LiteralHeaderExpires.Text = Resources.Global.Swarm_AssignmentExpires;
|
||||
this.LiteralHeaderExpires.Text = Resources.Controls.Swarm.Positions_AssignmentExpires;
|
||||
this.LiteralHeaderMinMax.Text = Resources.Global.Global_MinMax;
|
||||
|
||||
this.LabelAssignPersonTo.Text = Resources.Controls.Swarm.Positions_AssignPersonToPosition;
|
||||
this.LabelAssignmentDuration.Text = Resources.Controls.Swarm.Positions_AssignmentDuration;
|
||||
this.LabelModalHeader.Text = String.Format (Resources.Controls.Swarm.Positions_ModalHeader, this.ClientID);
|
||||
|
||||
this.DropDuration.Items.Add (new ListItem(Resources.Global.Timespan_Selection_OneMonth, "1"));
|
||||
this.DropDuration.Items.Add(new ListItem(Resources.Global.Timespan_Selection_TwoMonths, "2"));
|
||||
this.DropDuration.Items.Add(new ListItem(Resources.Global.Timespan_Selection_ThreeMonths, "3"));
|
||||
|
||||
Reference in New Issue
Block a user