Add WebCms
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../masterpages/umbracoPage.Master" CodeBehind="default.aspx.cs" Inherits="umbraco.presentation.translation._default" %>
|
||||
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="head" runat="server">
|
||||
<style type="text/css">
|
||||
.fieldsTable tr{
|
||||
border-color: #D9D7D7 !Important;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="body" runat="server">
|
||||
<cc1:UmbracoPanel ID="Panel2" runat="server">
|
||||
|
||||
<cc1:Feedback ID="feedback" runat="server" />
|
||||
|
||||
<cc1:Pane ID="pane_uploadFile" runat="server" Text="Upload translation file">
|
||||
<p>
|
||||
When you have completed the translation. Upload the edited XML file here. The related translation tasks will automaticly be closed when a file is uploaded.
|
||||
</p>
|
||||
|
||||
<cc1:PropertyPanel runat="server">
|
||||
<input type="file" runat="server" id="translationFile" size="30" /> <asp:Button ID="uploadFile" runat="server" Text="Upload file" OnClick="uploadFile_Click" />
|
||||
</cc1:PropertyPanel>
|
||||
</cc1:Pane>
|
||||
|
||||
|
||||
<cc1:Pane ID="pane_tasks" runat="server" Text="Your tasks">
|
||||
<p>
|
||||
<asp:Literal ID="lt_tasksHelp" runat="server"></asp:Literal>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="xml.aspx?task=all" target="_blank"><%= umbraco.ui.Text("translation", "downloadAllAsXml") %></a>
|
||||
|
||||
<a href="translationTasks.dtd" target="_blank"><%= umbraco.ui.Text("translation", "DownloadXmlDTD")%></a>
|
||||
</p>
|
||||
<asp:GridView GridLines="Horizontal" ID="taskList" runat="server" CssClass="fieldsTable" BorderStyle="None" Width="100%"
|
||||
CellPadding="5" AutoGenerateColumns="false">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<a href="details.aspx?id=<%#Eval("Id") %>"><%#Eval("NodeName") %></a>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="ReferingUser" />
|
||||
<asp:BoundField DataField="Date" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="details.aspx?id={0}" Text="Details" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="xml.aspx?id={0}" Target="_blank" Text="Download Xml" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</cc1:Pane>
|
||||
|
||||
</cc1:UmbracoPanel>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,43 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="../masterpages/umbracoPage.Master" AutoEventWireup="true" CodeBehind="details.aspx.cs" Inherits="umbraco.presentation.umbraco.translation.details" %>
|
||||
<%@ Register TagPrefix="ui" Namespace="umbraco.uicontrols" Assembly="controls" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
|
||||
<style type="text/css">
|
||||
.fieldsTable tr{
|
||||
border-color: #D9D7D7 !Important;
|
||||
}
|
||||
</style>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
|
||||
|
||||
<ui:UmbracoPanel ID="panel1" Text="Details" runat="server" hasMenu="false">
|
||||
|
||||
<ui:Pane runat="server" ID="pane_details" Text="Translation details">
|
||||
<ui:PropertyPanel id="pp_date" runat="server" Text="Task opened"></ui:PropertyPanel>
|
||||
<ui:PropertyPanel ID="pp_owner" runat="server" Text="Assigned to you by"></ui:PropertyPanel>
|
||||
<ui:PropertyPanel ID="pp_totalWords" runat="server" Text="Total words"></ui:PropertyPanel>
|
||||
<ui:PropertyPanel ID="pp_comment" runat="server" Text="Task comment"></ui:PropertyPanel>
|
||||
</ui:Pane>
|
||||
|
||||
|
||||
<ui:Pane ID="pane_tasks" runat="server" Text="Tasks">
|
||||
<ui:PropertyPanel ID="pp_xml" runat="server" Text="Translation xml" />
|
||||
<ui:PropertyPanel ID="pp_upload" runat="server" Text="Upload translation"/>
|
||||
<ui:PropertyPanel ID="pp_closeTask" runat="server" Text="Close task">
|
||||
<asp:Button runat="server" ID="bt_close" Text="Close task" OnClick="closeTask"/>
|
||||
</ui:PropertyPanel>
|
||||
</ui:Pane>
|
||||
|
||||
|
||||
<ui:Pane ID="pane_fields" runat="server" Text="Fields">
|
||||
<asp:DataGrid ID="dg_fields" runat="server" GridLines="Horizontal" HeaderStyle-Font-Bold="true" CssClass="fieldsTable" Width="100%" BorderStyle="None" />
|
||||
</ui:Pane>
|
||||
|
||||
|
||||
</ui:UmbracoPanel>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="footer" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,41 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../masterpages/umbracoPage.Master" CodeBehind="preview.aspx.cs" Inherits="umbraco.presentation.translation.preview" %>
|
||||
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="body" runat="server">
|
||||
|
||||
<table cellpadding="0" cellspacing="0" style="text-align: center;">
|
||||
<tr>
|
||||
<td><h2>Translated version</h2></td>
|
||||
<td><h2>Original</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="notice">
|
||||
<p>
|
||||
<strong>Please notice</strong> that due to templating and unpublished content, the 2 pages can have differences in layout.
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-right: 1px solid #ccc; padding-right: 15px;">
|
||||
|
||||
<iframe src="<%= translatedUrl %>" frameborder="0" style="border: none"></iframe>
|
||||
</td>
|
||||
<td style="padding-left: 15px;">
|
||||
|
||||
<iframe src="<%= originalUrl %>" frameborder="0" style="border: none"></iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
var docHeight = jQuery(document).height();
|
||||
var docWidth = jQuery(document).width();
|
||||
|
||||
jQuery("iframe").height(docHeight - 140).width((docWidth / 2) - 31);
|
||||
});
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--DTD generated by XMLSpy v2007 sp1 (http://www.altova.com)-->
|
||||
<!ELEMENT translationTasks ((task))>
|
||||
<!ATTLIST translationTasks
|
||||
TotalWords CDATA #REQUIRED
|
||||
>
|
||||
<!ELEMENT task ((Comment, PreviewUrl, node, task*))>
|
||||
<!ATTLIST task
|
||||
Date CDATA #REQUIRED
|
||||
Id ID #REQUIRED
|
||||
NodeId CDATA #REQUIRED
|
||||
TotalWords CDATA #REQUIRED
|
||||
>
|
||||
<!ELEMENT node ((data+))>
|
||||
<!ATTLIST node
|
||||
createDate CDATA #REQUIRED
|
||||
creatorID CDATA #REQUIRED
|
||||
creatorName CDATA #REQUIRED
|
||||
id CDATA #REQUIRED
|
||||
level CDATA #REQUIRED
|
||||
nodeName CDATA #REQUIRED
|
||||
nodeType CDATA #REQUIRED
|
||||
nodeTypeAlias CDATA #REQUIRED
|
||||
parentID CDATA #REQUIRED
|
||||
path CDATA #REQUIRED
|
||||
sortOrder CDATA #REQUIRED
|
||||
template CDATA #REQUIRED
|
||||
updateDate CDATA #REQUIRED
|
||||
urlName CDATA #REQUIRED
|
||||
version CDATA #REQUIRED
|
||||
writerID CDATA #REQUIRED
|
||||
writerName CDATA #REQUIRED
|
||||
>
|
||||
<!ELEMENT data (#PCDATA)>
|
||||
<!ATTLIST data
|
||||
alias CDATA #REQUIRED
|
||||
>
|
||||
<!ELEMENT PreviewUrl (#PCDATA)>
|
||||
<!ELEMENT Comment EMPTY>
|
||||
@@ -0,0 +1,2 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xml.aspx.cs" Inherits="umbraco.presentation.translation.xml" %><?xml version="1.0" encoding="UTF-8"?>
|
||||
<asp:literal id="xmlContents" runat="server"></asp:literal>
|
||||
Reference in New Issue
Block a user