Fixed some style and pop for Inspect Ledgers

This commit is contained in:
Rick Falkvinge
2014-10-25 02:00:58 +02:00
parent 574525219d
commit 7d0092c816
5 changed files with 64 additions and 8 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
<h2>Inspect <Swarmops5:ComboBudgets ID="DropBudgets" ListType="All" runat="server" /> for <asp:DropDownList runat="server" ID="DropYears"/> <asp:DropDownList runat="server" ID="Months"/></h2>
<h2>Inspect <Swarmops5:ComboBudgets ID="DropBudgets" ListType="All" runat="server" /> for <asp:DropDownList runat="server" ID="DropYears"/> <asp:DropDownList runat="server" ID="DropMonths"/></h2>
</asp:Content>
+29 -1
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
@@ -12,17 +13,44 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
{
protected void Page_Load(object sender, EventArgs e)
{
if (!CurrentOrganization.IsEconomyEnabled)
{
Response.Redirect("/Pages/v5/Financial/EconomyNotEnabled.aspx", true);
return;
}
this.PageAccessRequired = new Access(this.CurrentOrganization, AccessAspect.Bookkeeping, AccessType.Read);
this.DbVersionRequired = 0; // base schema is fine
this.PageTitle = "Inspect Ledgers"; // TODO localize
this.PageIcon = "iconshock-ledger-inspect";
if (!Page.IsPostBack)
{
DateTime today = DateTime.Today;
int year = today.Year;
int firstYear = CurrentOrganization.FirstFiscalYear;
while (year >= firstYear)
{
this.DropYears.Items.Add(year.ToString(CultureInfo.InvariantCulture));
year--;
}
for (int monthNumber = 1; monthNumber <= 12; monthNumber++)
{
this.DropMonths.Items.Add(new ListItem(new DateTime(2014, monthNumber, 1).ToString("MMM"), monthNumber.ToString(CultureInfo.InvariantCulture))); // will autolocalize
}
this.DropYears.SelectedIndex = 0;
this.DropMonths.SelectedValue = today.Month.ToString(CultureInfo.InvariantCulture);
}
Localize();
}
private void Localize()
{
// TODO
}
}
}
@@ -63,12 +63,6 @@
.datagrid-row-selected,.datagrid-row-over{
background:transparent;
}
.content h2 select {
font-size: 16px;
font-weight: bold;
color: #1C397E;
letter-spacing: 1px;
}
table.datagrid-ftable {
font-weight: 500;
}
+19
View File
@@ -322,6 +322,25 @@ img
margin-bottom: 7px;
}
.content > h2 > select, .content > h2 > span > span.combo > input.combo-text {
font-size: 16px;
font-weight: bold;
color: #1C397E;
letter-spacing: 1px;
text-transform: uppercase;
}
.content > h2 > span > span.combo {
height: 20px !important;
}
.content > h2 > span > span.combo > input.combo-text {
height: 20px !important;
line-height: 20px !important;
}
.content h3
{
font-family: Ubuntu, Arial, Sans-Serif;
+15
View File
@@ -33,6 +33,21 @@
opacity:0.4;
filter:alpha(opacity=40);
}
.content > h2 > span > span.combo > input.combo-text {
height: 20px !important;
line-height: 20px !important;
}
.content h2 span span.combo span span.combo-arrow{
background:#FFFFFF url('//hostedscripts.falkvinge.net/easyui/themes/default/images/combo_arrow.gif') no-repeat 1px -1px;
}
.combo-arrow-hover{
opacity:0.7;
filter:alpha(opacity=70);