fix radiobutton (almost...)

This commit is contained in:
Samuele E. Locatelli
2017-09-06 14:07:54 +02:00
parent 326196e2be
commit 6b4abb4cce
6 changed files with 23 additions and 19 deletions
Binary file not shown.
+7 -7
View File
@@ -35,7 +35,7 @@
<ItemTemplate>
ITEM - EMPTY
</ItemTemplate>
<InsertItemTemplate>
<InsertItemTemplate>
<div class="row">
<div class="col-sm-6 col-xs-12">
<ul class="list-group list-group-flush">
@@ -66,9 +66,9 @@
</div>
<div class="col-xs-9">
<div class="btn-group" data-toggle="buttons" role="group">
<asp:RadioButtonList runat="server" ID="rblSex" SelectedValue='<%# Bind("Sesso") %>' RepeatDirection="Horizontal" RepeatLayout="Flow">
<asp:ListItem Value="M" type="button" class="btn btn-default"></asp:ListItem>
<asp:ListItem Value="F" type="button" class="btn btn-default"></asp:ListItem>
<asp:RadioButtonList runat="server" ID="rblSex" SelectedValue='<%# Bind("Sesso") %>' RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="btn-group-justified" OnPreRender="rblSex_PreRender" AutoPostBack="true" OnSelectedIndexChanged="rblSex_SelectedIndexChanged">
<asp:ListItem Value="M" class="form-control"></asp:ListItem>
<asp:ListItem Value="F"></asp:ListItem>
</asp:RadioButtonList>
</div>
</div>
@@ -214,9 +214,9 @@
</div>
<div class="col-xs-9">
<div class="btn-group" data-toggle="buttons">
<asp:RadioButtonList runat="server" ID="rblSex" SelectedValue='<%# Bind("Sesso") %>' RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="btn-group btn-group-justified" OnPreRender="rblSex_PreRender" AutoPostBack="true" OnSelectedIndexChanged="rblSex_SelectedIndexChanged" >
<asp:ListItem Value="M" type="button" class="btn btn-default"></asp:ListItem>
<asp:ListItem Value="F" type="button" class="btn btn-default"></asp:ListItem>
<asp:RadioButtonList runat="server" ID="rblSex" SelectedValue='<%# Bind("Sesso") %>' RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="btn-group-justified" OnPreRender="rblSex_PreRender" AutoPostBack="true" OnSelectedIndexChanged="rblSex_SelectedIndexChanged">
<asp:ListItem Value="M" Class="form-control btn"></asp:ListItem>
<asp:ListItem Value="F" Class="form-control btn"></asp:ListItem>
</asp:RadioButtonList>
</div>
</div>
+4 -4
View File
@@ -194,11 +194,11 @@ namespace ScheMe
item.Attributes.Remove("class");
if (item.Selected)
{
item.Attributes.Add("class", "btn btn-primary btn-xs");
item.Attributes.Add("class", "form-control btn btn-primary btn-xs");
}
else
{
item.Attributes.Add("class", "btn btn-default btn-xs");
item.Attributes.Add("class", "form-control btn btn-default btn-xs");
}
}
}
@@ -216,11 +216,11 @@ namespace ScheMe
item.Attributes.Remove("class");
if (item.Selected)
{
item.Attributes.Add("class", "btn btn-primary btn-xs");
item.Attributes.Add("class", "form-control btn btn-primary btn-xs");
}
else
{
item.Attributes.Add("class", "btn btn-default btn-xs");
item.Attributes.Add("class", "form-control btn btn-default btn-xs");
}
}
}
+1 -1
View File
@@ -11,7 +11,7 @@
<head runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%: Page.Title %> Steamware's SHERPA</title>
<title><%: Page.Title %> Steamware's ScheMe</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
+11 -7
View File
@@ -6,14 +6,18 @@
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topNavbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="fa fa-bars fa-2x"></span>
<span class="fa fa-bars fa-3x"></span>
</button>
<a class="navbar-brand uppercase btn btn-default" href="Default" style="margin: 0 0.5em 0 0; padding: 0.25em;">
<b><%: SteamWare.memLayer.ML.CRS("CodModulo") %></b><br />
<span class="smaller">
<i class="fa fa-home fa-lg" aria-hidden="true"></i>
<asp:Label ID="lblVers" CssClass="small" Height="0.8em" runat="server" Font-Bold="false" />
</span>
<div style="float: left;">
<i class="fa fa-user-md fa-2x" aria-hidden="true"></i>
</div>
<div style="float: left; padding-left:0.2em;">
<b><%: SteamWare.memLayer.ML.CRS("CodModulo") %></b><br />
<span class="smaller text-right">
<asp:Label ID="lblVers" CssClass="small" Height="0.8em" runat="server" Font-Bold="false" />
</span>
</div>
</a>
</div>
@@ -22,7 +26,7 @@
<ul class="nav navbar-nav">
<li>
<div class="tStrong headerHighlight uppercase" style="font-size: 1.3em; vertical-align: central; margin: auto;">
<i class="fa fa-user" aria-hidden="true"></i> <%: pazienteSel %>
<i class="fa fa-user" aria-hidden="true"></i>&nbsp;<%: pazienteSel %>
</div>
<div class="smaller"><%: DateTime.Now.ToString("ddd dd/MM/yyyy HH:mm:ss") %></div>
</li>
Binary file not shown.