1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-11-25 07:55:27 +01:00

Make Recruit Data page multilanguage

This commit is contained in:
Bartosz Chyży 2018-04-17 16:52:46 +02:00
parent 86e9ee979c
commit 50fb3a1d5e
5 changed files with 991 additions and 247 deletions

View File

@ -59,5 +59,428 @@ namespace RSystem.App_LocalResources.Recruit.Data {
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// Looks up a localized string similar to Adres zamieszkania.
/// </summary>
public static string Address {
get {
return ResourceManager.GetString("Address", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Miejsce urodzenia.
/// </summary>
public static string BirthCity {
get {
return ResourceManager.GetString("BirthCity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kraj urodzenia.
/// </summary>
public static string BirthCountry {
get {
return ResourceManager.GetString("BirthCountry", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Anuluj.
/// </summary>
public static string Cancel {
get {
return ResourceManager.GetString("Cancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Obywatelstwo.
/// </summary>
public static string Citizenship {
get {
return ResourceManager.GetString("Citizenship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Miasto.
/// </summary>
public static string City {
get {
return ResourceManager.GetString("City", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dane kontaktowe.
/// </summary>
public static string Contact {
get {
return ResourceManager.GetString("Contact", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Adres do korespondencji.
/// </summary>
public static string CorespondentAddress {
get {
return ResourceManager.GetString("CorespondentAddress", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Adres do korespondencji taki sam jak adres zamieszkania.
/// </summary>
public static string CorespondentAdressSameAsResidence {
get {
return ResourceManager.GetString("CorespondentAdressSameAsResidence", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Miasto.
/// </summary>
public static string CorespondentCity {
get {
return ResourceManager.GetString("CorespondentCity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kraj.
/// </summary>
public static string CorespondentCountry {
get {
return ResourceManager.GetString("CorespondentCountry", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer mieszkania.
/// </summary>
public static string CorespondentFlat {
get {
return ResourceManager.GetString("CorespondentFlat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer domu.
/// </summary>
public static string CorespondentHouse {
get {
return ResourceManager.GetString("CorespondentHouse", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kod pocztowy.
/// </summary>
public static string CorespondentPostalCode {
get {
return ResourceManager.GetString("CorespondentPostalCode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ulica.
/// </summary>
public static string CorespondentStreet {
get {
return ResourceManager.GetString("CorespondentStreet", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kraj.
/// </summary>
public static string Country {
get {
return ResourceManager.GetString("Country", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data i miejsce urodzenia.
/// </summary>
public static string DateAndPlaceOfBirth {
get {
return ResourceManager.GetString("DateAndPlaceOfBirth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data urodzenia.
/// </summary>
public static string DayOfBirth {
get {
return ResourceManager.GetString("DayOfBirth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Niepełnosprawność.
/// </summary>
public static string Disablility {
get {
return ResourceManager.GetString("Disablility", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dokument potwierdzający tożsamość.
/// </summary>
public static string DocumentType {
get {
return ResourceManager.GetString("DocumentType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Twój adress E-mail nie wygląda na poprawny.
/// </summary>
public static string EmailValidationError {
get {
return ResourceManager.GetString("EmailValidationError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Imię ojca.
/// </summary>
public static string FathersName {
get {
return ResourceManager.GetString("FathersName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kobieta.
/// </summary>
public static string Female {
get {
return ResourceManager.GetString("Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Imię.
/// </summary>
public static string Firstname {
get {
return ResourceManager.GetString("Firstname", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer mieszkania.
/// </summary>
public static string Flat {
get {
return ResourceManager.GetString("Flat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer domu.
/// </summary>
public static string House {
get {
return ResourceManager.GetString("House", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dowód Osobisty.
/// </summary>
public static string IDCard {
get {
return ResourceManager.GetString("IDCard", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tożsamość.
/// </summary>
public static string Identity {
get {
return ResourceManager.GetString("Identity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Osoba niepełnosprawna.
/// </summary>
public static string IsDisabled {
get {
return ResourceManager.GetString("IsDisabled", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Nazwisko.
/// </summary>
public static string LastName {
get {
return ResourceManager.GetString("LastName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Mężczyzna.
/// </summary>
public static string Male {
get {
return ResourceManager.GetString("Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Wojsko.
/// </summary>
public static string Military {
get {
return ResourceManager.GetString("Military", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Status wojskowy.
/// </summary>
public static string MilitaryAttitude {
get {
return ResourceManager.GetString("MilitaryAttitude", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Imię matki.
/// </summary>
public static string MothersName {
get {
return ResourceManager.GetString("MothersName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Nie.
/// </summary>
public static string No {
get {
return ResourceManager.GetString("No", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer Dowodu Osobistego.
/// </summary>
public static string NumberOfIDCard {
get {
return ResourceManager.GetString("NumberOfIDCard", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer Paszportu.
/// </summary>
public static string NumberOfPass {
get {
return ResourceManager.GetString("NumberOfPass", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Rodzice.
/// </summary>
public static string Parents {
get {
return ResourceManager.GetString("Parents", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Paszport.
/// </summary>
public static string Passport {
get {
return ResourceManager.GetString("Passport", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dane osobowe.
/// </summary>
public static string PersonalData {
get {
return ResourceManager.GetString("PersonalData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer telefonu.
/// </summary>
public static string Phone {
get {
return ResourceManager.GetString("Phone", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kod pocztowy.
/// </summary>
public static string PostalCode {
get {
return ResourceManager.GetString("PostalCode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Zapisz.
/// </summary>
public static string Save {
get {
return ResourceManager.GetString("Save", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Drugie imie.
/// </summary>
public static string SecondName {
get {
return ResourceManager.GetString("SecondName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Płeć.
/// </summary>
public static string Sex {
get {
return ResourceManager.GetString("Sex", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ulica.
/// </summary>
public static string Street {
get {
return ResourceManager.GetString("Street", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tak.
/// </summary>
public static string Yes {
get {
return ResourceManager.GetString("Yes", resourceCulture);
}
}
} }
} }

View File

@ -1,101 +1,261 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
Version 1.3 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
The primary goals of this format is to allow a simple XML format : using a System.ComponentModel.TypeConverter
that is mostly human readable. The generation and parsing of the : and then encoded with base64 encoding.
various data types are done through the TypeConverter classes -->
associated with the data types. <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
Example: <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
... ado.net/XML headers & schema ... <xsd:choice maxOccurs="unbounded">
<resheader name="resmimetype">text/microsoft-resx</resheader> <xsd:element name="metadata">
<resheader name="version">1.3</resheader> <xsd:complexType>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <xsd:sequence>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <xsd:element name="value" type="xsd:string" minOccurs="0" />
<data name="Name1">this is my long string</data> </xsd:sequence>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <xsd:attribute name="name" use="required" type="xsd:string" />
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <xsd:attribute name="type" type="xsd:string" />
[base64 mime encoded serialized .NET Framework object] <xsd:attribute name="mimetype" type="xsd:string" />
</data> <xsd:attribute ref="xml:space" />
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </xsd:complexType>
[base64 mime encoded string representing a byte array form of the .NET Framework object] </xsd:element>
</data> <xsd:element name="assembly">
<xsd:complexType>
There are any number of "resheader" rows that contain simple <xsd:attribute name="alias" type="xsd:string" />
name/value pairs. <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
Each data row contains a name, and value. The row also contains a </xsd:element>
type or mimetype. Type corresponds to a .NET class that support <xsd:element name="data">
text/value conversion through the TypeConverter architecture. <xsd:complexType>
Classes that don't support this are serialized and stored with the <xsd:sequence>
mimetype set. <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
The mimetype is used for serialized objects, and tells the </xsd:sequence>
ResXResourceReader how to depersist the object. This is currently not <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
extensible. For a given mimetype the value must be set accordingly: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
Note - application/x-microsoft.net.object.binary.base64 is the format <xsd:attribute ref="xml:space" />
that the ResXResourceWriter will generate, however the reader can </xsd:complexType>
read any of the formats listed below. </xsd:element>
<xsd:element name="resheader">
mimetype: application/x-microsoft.net.object.binary.base64 <xsd:complexType>
value : The object must be serialized with <xsd:sequence>
: System.Serialization.Formatters.Binary.BinaryFormatter <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
: and then encoded with base64 encoding. </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
mimetype: application/x-microsoft.net.object.soap.base64 </xsd:complexType>
value : The object must be serialized with </xsd:element>
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter </xsd:choice>
: and then encoded with base64 encoding. </xsd:complexType>
</xsd:element>
mimetype: application/x-microsoft.net.object.bytearray.base64 </xsd:schema>
value : The object must be serialized into a byte array <resheader name="resmimetype">
: using a System.ComponentModel.TypeConverter <value>text/microsoft-resx</value>
: and then encoded with base64 encoding. </resheader>
--> <resheader name="version">
<value>2.0</value>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> </resheader>
<xsd:element name="root" msdata:IsDataSet="true"> <resheader name="reader">
<xsd:complexType> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:choice maxOccurs="unbounded"> </resheader>
<xsd:element name="data"> <resheader name="writer">
<xsd:complexType> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:sequence> </resheader>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <data name="Address" xml:space="preserve">
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <value>Address</value>
</xsd:sequence> </data>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <data name="BirthCity" xml:space="preserve">
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <value>City of birth</value>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> </data>
</xsd:complexType> <data name="BirthCountry" xml:space="preserve">
</xsd:element> <value>Country of birth</value>
<xsd:element name="resheader"> </data>
<xsd:complexType> <data name="Cancel" xml:space="preserve">
<xsd:sequence> <value>Cancel</value>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </data>
</xsd:sequence> <data name="Citizenship" xml:space="preserve">
<xsd:attribute name="name" type="xsd:string" use="required" /> <value>Citizenship</value>
</xsd:complexType> </data>
</xsd:element> <data name="City" xml:space="preserve">
</xsd:choice> <value>City</value>
</xsd:complexType> </data>
</xsd:element> <data name="Contact" xml:space="preserve">
</xsd:schema> <value>Contact data</value>
<resheader name="resmimetype"> </data>
<value>text/microsoft-resx</value> <data name="CorespondentAddress" xml:space="preserve">
</resheader> <value>Corespondent address</value>
<resheader name="version"> </data>
<value>1.3</value> <data name="CorespondentAdressSameAsResidence" xml:space="preserve">
</resheader> <value>Corespondent adress same as residence</value>
<resheader name="reader"> </data>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <data name="CorespondentCity" xml:space="preserve">
</resheader> <value>City</value>
<resheader name="writer"> </data>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <data name="CorespondentCountry" xml:space="preserve">
</resheader> <value>Country</value>
</data>
<data name="CorespondentFlat" xml:space="preserve">
<value>Flat no.</value>
</data>
<data name="CorespondentHouse" xml:space="preserve">
<value>House no.</value>
</data>
<data name="CorespondentPostalCode" xml:space="preserve">
<value>Postal code</value>
</data>
<data name="CorespondentStreet" xml:space="preserve">
<value>Street</value>
</data>
<data name="Country" xml:space="preserve">
<value>Country</value>
</data>
<data name="DateAndPlaceOfBirth" xml:space="preserve">
<value>Date and place of birth</value>
</data>
<data name="DayOfBirth" xml:space="preserve">
<value>Day of birth</value>
</data>
<data name="Disablility" xml:space="preserve">
<value>Disablility</value>
</data>
<data name="DocumentType" xml:space="preserve">
<value>Identity document</value>
</data>
<data name="EmailValidationError" xml:space="preserve">
<value>Your E-mail does't seem to valid address</value>
</data>
<data name="FathersName" xml:space="preserve">
<value>Father's name</value>
</data>
<data name="Female" xml:space="preserve">
<value>Female</value>
</data>
<data name="Firstname" xml:space="preserve">
<value>First name</value>
</data>
<data name="Flat" xml:space="preserve">
<value>Flat no.</value>
</data>
<data name="House" xml:space="preserve">
<value>House no.</value>
</data>
<data name="IDCard" xml:space="preserve">
<value>ID Card</value>
</data>
<data name="Identity" xml:space="preserve">
<value>Identity</value>
</data>
<data name="IsDisabled" xml:space="preserve">
<value>Disabled person</value>
</data>
<data name="LastName" xml:space="preserve">
<value>Last name</value>
</data>
<data name="Male" xml:space="preserve">
<value>Male</value>
</data>
<data name="Military" xml:space="preserve">
<value>Military</value>
</data>
<data name="MilitaryAttitude" xml:space="preserve">
<value>Militaty status</value>
</data>
<data name="MothersName" xml:space="preserve">
<value>Mother's name</value>
</data>
<data name="No" xml:space="preserve">
<value>No</value>
</data>
<data name="NumberOfIDCard" xml:space="preserve">
<value>Number of ID Card</value>
</data>
<data name="NumberOfPass" xml:space="preserve">
<value>Number of Passport</value>
</data>
<data name="Parents" xml:space="preserve">
<value>Parents</value>
</data>
<data name="Passport" xml:space="preserve">
<value>Passport</value>
</data>
<data name="PersonalData" xml:space="preserve">
<value>Personal data</value>
</data>
<data name="Phone" xml:space="preserve">
<value>Phone number</value>
</data>
<data name="PostalCode" xml:space="preserve">
<value>Postal code</value>
</data>
<data name="Save" xml:space="preserve">
<value>Save</value>
</data>
<data name="SecondName" xml:space="preserve">
<value>Second name</value>
</data>
<data name="Sex" xml:space="preserve">
<value>Sex</value>
</data>
<data name="Street" xml:space="preserve">
<value>Street</value>
</data>
<data name="Yes" xml:space="preserve">
<value>Yes</value>
</data>
</root> </root>

View File

@ -1,101 +1,261 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
Version 1.3 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
The primary goals of this format is to allow a simple XML format : using a System.ComponentModel.TypeConverter
that is mostly human readable. The generation and parsing of the : and then encoded with base64 encoding.
various data types are done through the TypeConverter classes -->
associated with the data types. <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
Example: <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
... ado.net/XML headers & schema ... <xsd:choice maxOccurs="unbounded">
<resheader name="resmimetype">text/microsoft-resx</resheader> <xsd:element name="metadata">
<resheader name="version">1.3</resheader> <xsd:complexType>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <xsd:sequence>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <xsd:element name="value" type="xsd:string" minOccurs="0" />
<data name="Name1">this is my long string</data> </xsd:sequence>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <xsd:attribute name="name" use="required" type="xsd:string" />
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <xsd:attribute name="type" type="xsd:string" />
[base64 mime encoded serialized .NET Framework object] <xsd:attribute name="mimetype" type="xsd:string" />
</data> <xsd:attribute ref="xml:space" />
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </xsd:complexType>
[base64 mime encoded string representing a byte array form of the .NET Framework object] </xsd:element>
</data> <xsd:element name="assembly">
<xsd:complexType>
There are any number of "resheader" rows that contain simple <xsd:attribute name="alias" type="xsd:string" />
name/value pairs. <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
Each data row contains a name, and value. The row also contains a </xsd:element>
type or mimetype. Type corresponds to a .NET class that support <xsd:element name="data">
text/value conversion through the TypeConverter architecture. <xsd:complexType>
Classes that don't support this are serialized and stored with the <xsd:sequence>
mimetype set. <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
The mimetype is used for serialized objects, and tells the </xsd:sequence>
ResXResourceReader how to depersist the object. This is currently not <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
extensible. For a given mimetype the value must be set accordingly: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
Note - application/x-microsoft.net.object.binary.base64 is the format <xsd:attribute ref="xml:space" />
that the ResXResourceWriter will generate, however the reader can </xsd:complexType>
read any of the formats listed below. </xsd:element>
<xsd:element name="resheader">
mimetype: application/x-microsoft.net.object.binary.base64 <xsd:complexType>
value : The object must be serialized with <xsd:sequence>
: System.Serialization.Formatters.Binary.BinaryFormatter <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
: and then encoded with base64 encoding. </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
mimetype: application/x-microsoft.net.object.soap.base64 </xsd:complexType>
value : The object must be serialized with </xsd:element>
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter </xsd:choice>
: and then encoded with base64 encoding. </xsd:complexType>
</xsd:element>
mimetype: application/x-microsoft.net.object.bytearray.base64 </xsd:schema>
value : The object must be serialized into a byte array <resheader name="resmimetype">
: using a System.ComponentModel.TypeConverter <value>text/microsoft-resx</value>
: and then encoded with base64 encoding. </resheader>
--> <resheader name="version">
<value>2.0</value>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> </resheader>
<xsd:element name="root" msdata:IsDataSet="true"> <resheader name="reader">
<xsd:complexType> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:choice maxOccurs="unbounded"> </resheader>
<xsd:element name="data"> <resheader name="writer">
<xsd:complexType> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:sequence> </resheader>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <data name="Address" xml:space="preserve">
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <value>Adres zamieszkania</value>
</xsd:sequence> </data>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <data name="BirthCity" xml:space="preserve">
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <value>Miejsce urodzenia</value>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> </data>
</xsd:complexType> <data name="BirthCountry" xml:space="preserve">
</xsd:element> <value>Kraj urodzenia</value>
<xsd:element name="resheader"> </data>
<xsd:complexType> <data name="Cancel" xml:space="preserve">
<xsd:sequence> <value>Anuluj</value>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </data>
</xsd:sequence> <data name="Citizenship" xml:space="preserve">
<xsd:attribute name="name" type="xsd:string" use="required" /> <value>Obywatelstwo</value>
</xsd:complexType> </data>
</xsd:element> <data name="City" xml:space="preserve">
</xsd:choice> <value>Miasto</value>
</xsd:complexType> </data>
</xsd:element> <data name="Contact" xml:space="preserve">
</xsd:schema> <value>Dane kontaktowe</value>
<resheader name="resmimetype"> </data>
<value>text/microsoft-resx</value> <data name="CorespondentAddress" xml:space="preserve">
</resheader> <value>Adres do korespondencji</value>
<resheader name="version"> </data>
<value>1.3</value> <data name="CorespondentAdressSameAsResidence" xml:space="preserve">
</resheader> <value>Adres do korespondencji taki sam jak adres zamieszkania</value>
<resheader name="reader"> </data>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <data name="CorespondentCity" xml:space="preserve">
</resheader> <value>Miasto</value>
<resheader name="writer"> </data>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <data name="CorespondentCountry" xml:space="preserve">
</resheader> <value>Kraj</value>
</data>
<data name="CorespondentFlat" xml:space="preserve">
<value>Numer mieszkania</value>
</data>
<data name="CorespondentHouse" xml:space="preserve">
<value>Numer domu</value>
</data>
<data name="CorespondentPostalCode" xml:space="preserve">
<value>Kod pocztowy</value>
</data>
<data name="CorespondentStreet" xml:space="preserve">
<value>Ulica</value>
</data>
<data name="Country" xml:space="preserve">
<value>Kraj</value>
</data>
<data name="DateAndPlaceOfBirth" xml:space="preserve">
<value>Data i miejsce urodzenia</value>
</data>
<data name="DayOfBirth" xml:space="preserve">
<value>Data urodzenia</value>
</data>
<data name="Disablility" xml:space="preserve">
<value>Niepełnosprawność</value>
</data>
<data name="DocumentType" xml:space="preserve">
<value>Dokument potwierdzający tożsamość</value>
</data>
<data name="EmailValidationError" xml:space="preserve">
<value>Twój adress E-mail nie wygląda na poprawny</value>
</data>
<data name="FathersName" xml:space="preserve">
<value>Imię ojca</value>
</data>
<data name="Female" xml:space="preserve">
<value>Kobieta</value>
</data>
<data name="Firstname" xml:space="preserve">
<value>Imię</value>
</data>
<data name="Flat" xml:space="preserve">
<value>Numer mieszkania</value>
</data>
<data name="House" xml:space="preserve">
<value>Numer domu</value>
</data>
<data name="IDCard" xml:space="preserve">
<value>Dowód Osobisty</value>
</data>
<data name="Identity" xml:space="preserve">
<value>Tożsamość</value>
</data>
<data name="IsDisabled" xml:space="preserve">
<value>Osoba niepełnosprawna</value>
</data>
<data name="LastName" xml:space="preserve">
<value>Nazwisko</value>
</data>
<data name="Male" xml:space="preserve">
<value>Mężczyzna</value>
</data>
<data name="Military" xml:space="preserve">
<value>Wojsko</value>
</data>
<data name="MilitaryAttitude" xml:space="preserve">
<value>Status wojskowy</value>
</data>
<data name="MothersName" xml:space="preserve">
<value>Imię matki</value>
</data>
<data name="No" xml:space="preserve">
<value>Nie</value>
</data>
<data name="NumberOfIDCard" xml:space="preserve">
<value>Numer Dowodu Osobistego</value>
</data>
<data name="NumberOfPass" xml:space="preserve">
<value>Numer Paszportu</value>
</data>
<data name="Parents" xml:space="preserve">
<value>Rodzice</value>
</data>
<data name="Passport" xml:space="preserve">
<value>Paszport</value>
</data>
<data name="PersonalData" xml:space="preserve">
<value>Dane osobowe</value>
</data>
<data name="Phone" xml:space="preserve">
<value>Numer telefonu</value>
</data>
<data name="PostalCode" xml:space="preserve">
<value>Kod pocztowy</value>
</data>
<data name="Save" xml:space="preserve">
<value>Zapisz</value>
</data>
<data name="SecondName" xml:space="preserve">
<value>Drugie imie</value>
</data>
<data name="Sex" xml:space="preserve">
<value>Płeć</value>
</data>
<data name="Street" xml:space="preserve">
<value>Ulica</value>
</data>
<data name="Yes" xml:space="preserve">
<value>Tak</value>
</data>
</root> </root>

View File

@ -5,8 +5,10 @@ using System.Web;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Web.Mvc; using System.Web.Mvc;
using RSystem.Models; using RSystem.Models;
using RSystem.App_LocalResources.Recruit.Data;
namespace RSystem.ViewModels namespace RSystem.ViewModels
{ {
@ -18,82 +20,81 @@ namespace RSystem.ViewModels
public int RecruitDataId { get; set; } public int RecruitDataId { get; set; }
//Recruit Data //Recruit Data
[Display(Name = "Imię")] [Display(Name = "Firstname",ResourceType = typeof(Data))]
public string FirstName { get; set; } public string FirstName { get; set; }
[Display(Name = "Drugie imię")] [Display(Name = "SecondName",ResourceType = typeof(Data))]
public string SecondName { get; set; } public string SecondName { get; set; }
[Display(Name = "Nazwisko")] [Display(Name = "LastName",ResourceType = typeof(Data))]
public string LastName { get; set; } public string LastName { get; set; }
[Display(Name = "Płeć")] [Display(Name = "Sex",ResourceType = typeof(Data))]
public Sex Sex { get; set; } public Sex Sex { get; set; }
//Identity //Identity
[Display(Name = "Obywatelstwo")] [Display(Name = "Citizenship", ResourceType = typeof(Data))]
public string Citizenship { get; set; } public string Citizenship { get; set; }
[Display(Name = "Dokument Potwierdzający tożsamość")] [Display(Name = "DocumentType",ResourceType = typeof(Data))]
public DocumentType DocumentType { get; set; } public DocumentType DocumentType { get; set; }
public string DocumentNumber { get; set; } public string DocumentNumber { get; set; }
//Adress //Adress
[Display(Name = "Ulica")] [Display(Name = "Street", ResourceType = typeof(Data))]
public string Street { get; set; } public string Street { get; set; }
[Display(Name = "Numer domu")] [Display(Name = "House", ResourceType = typeof(Data))]
public string House { get; set; } public string House { get; set; }
[Display(Name = "Numer mieszkania")] [Display(Name = "Flat", ResourceType = typeof(Data))]
public string Flat { get; set; } public string Flat { get; set; }
[Display(Name = "Kod pocztowy")] [Display(Name = "PostalCode", ResourceType = typeof(Data))]
public string PostalCode { get; set; } public string PostalCode { get; set; }
[Display(Name = "Miasto")] [Display(Name = "City", ResourceType = typeof(Data))]
public string City { get; set; } public string City { get; set; }
[Display(Name = "Kraj")] [Display(Name = "Country", ResourceType = typeof(Data))]
public string Country { get; set; } public string Country { get; set; }
//Corespondent Adress //Corespondent Adress
[Display(Name = "Adres do korespondencji taki sam jak adres zamieszkania")] [Display(Name = "CorespondentAdressSameAsResidence", ResourceType = typeof(Data))]
public bool CorespondentAdressSameAsResidence { get; set; } public bool CorespondentAdressSameAsResidence { get; set; }
[Display(Name = "Ulica")] [Display(Name = "CorespondentStreet", ResourceType = typeof(Data))]
public string CorespondentStreet { get; set; } public string CorespondentStreet { get; set; }
[Display(Name = "Numer domu")] [Display(Name = "CorespondentHouse", ResourceType = typeof(Data))]
public string CorespondentHouse { get; set; } public string CorespondentHouse { get; set; }
[Display(Name = "Numer Mieszkania")] [Display(Name = "CorespondentFlat",ResourceType = typeof(Data))]
public string CorespondentFlat { get; set; } public string CorespondentFlat { get; set; }
[Display(Name = "Kod pocztowy")] [Display(Name = "CorespondentPostalCode", ResourceType = typeof(Data))]
public string CorespondentPostalCode { get; set; } public string CorespondentPostalCode { get; set; }
[Display(Name = "Miasto")] [Display(Name = "CorespondentCity", ResourceType = typeof(Data))]
public string CorespondentCity { get; set; } public string CorespondentCity { get; set; }
[Display(Name = "Kraj")] [Display(Name = "CorespondentCountry", ResourceType = typeof(Data))]
public string CorespondentCountry { get; set; } public string CorespondentCountry { get; set; }
//E adress //E adress
[EmailAddress(ErrorMessage = "Adress email wygląda na niepoprawny")] [EmailAddress(ErrorMessage = "Adress email wygląda na niepoprawny")]
[Display(Name = "Adres E-mail")] [Display(Name = "Adres E-mail")]
public string Email { get; set; } public string Email { get; set; }
[Display(Name = "Numer telefonu")] [Display(Name = "Phone",ResourceType = typeof(Data))]
public string Phone { get; set; } public string Phone { get; set; }
//Disability //Disability
[Display(Name = "Osoba niepełnosprawna")] [Display(Name = "IsDisabled", ResourceType = typeof(Data))]
public bool IsDisabled { get; set; } public bool IsDisabled { get; set; }
//parents //parents
[Display(Name = "Imię ojca")] [Display(Name = "FathersName", ResourceType = typeof(Data))]
public string FathersName { get; set; } public string FathersName { get; set; }
[Display(Name = "Imię Matki")] [Display(Name = "MothersName", ResourceType = typeof(Data))]
public string MothersName { get; set; } public string MothersName { get; set; }
//Place and date of birth //Place and date of birth
[DataType(DataType.Date)] [DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)] [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
[Display(Name = "Data urodzenia")] [Display(Name = "DayOfBirth", ResourceType = typeof(Data))]
public DateTime DayOfBirth { get; set; } public DateTime DayOfBirth { get; set; }
[Display(Name = "Miejsce urodzenia")] [Display(Name = "BirthCity", ResourceType = typeof(Data))]
public string BirthCity { get; set; } public string BirthCity { get; set; }
[Display(Name = "Kraj urodzenia")] [Display(Name = "Country",ResourceType = typeof(Data))]
public string BirthCountry { get; set; } public string BirthCountry { get; set; }
//Military //Military
[Display(Name = "Status wojskowy")] [Display(Name = "MilitaryAttitude", ResourceType = typeof(Data))]
public MilitaryAttitude MilitaryAttitude { get; set; } public MilitaryAttitude MilitaryAttitude { get; set; }
} }

View File

@ -1,8 +1,9 @@
 
@using RSystem.Models @using RSystem.Models
@model RSystem.ViewModels.RecruitDataViewModel @model RSystem.ViewModels.RecruitDataViewModel
@using RSystem.App_LocalResources.Recruit.Data
@{ @{
ViewBag.Title = "Dane Osobowe"; ViewBag.Title = Data.PersonalData;
} }
@using (Html.BeginForm()) @using (Html.BeginForm())
@ -12,7 +13,7 @@
<div class="row py-20 "> <div class="row py-20 ">
<div class="col-md-6 col-lg-4"> <div class="col-md-6 col-lg-4">
<section class="form-section"> <section class="form-section">
<header>Dane Osobowe</header> <header>@Data.PersonalData</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.FirstName ,new { @class = "label-form required" }) @Html.LabelFor(model => model.FirstName ,new { @class = "label-form required" })
@ -29,16 +30,16 @@
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.Sex, new { @class = "label-form required" }) @Html.LabelFor(model => model.Sex, new { @class = "label-form required" })
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Female) Kobieta</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Female) @Data.Female</label>
</div> </div>
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Male) Mężczyzna</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Male) @Data.Male</label>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
<section class="form-section"> <section class="form-section">
<header>Rodzice</header> <header>@Data.Parents</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.FathersName, new { @class = "label-form required" }) @Html.LabelFor(model => model.FathersName, new { @class = "label-form required" })
@ -51,7 +52,7 @@
</div> </div>
</section> </section>
<section class="form-section"> <section class="form-section">
<header>Data i miejsce urodzenia</header> <header>@Data.DateAndPlaceOfBirth</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.DayOfBirth, new { @class = "label-form required" }) @Html.LabelFor(model => model.DayOfBirth, new { @class = "label-form required" })
@ -64,7 +65,6 @@
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.BirthCountry, new { @class = "label-form required" }) @Html.LabelFor(model => model.BirthCountry, new { @class = "label-form required" })
@Html.DropDownListFor(model=>model.BirthCountry,Model.Countries ,new { @class = "form-control" } ) @Html.DropDownListFor(model=>model.BirthCountry,Model.Countries ,new { @class = "form-control" } )
</div> </div>
</div> </div>
</section> </section>
@ -73,7 +73,7 @@
<div class="col-md-6 col-lg-4"> <div class="col-md-6 col-lg-4">
<section class="form-section"> <section class="form-section">
<header>Tożsamość</header> <header>@Data.Identity</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.Citizenship, new { @class = "label-form required" }) @Html.LabelFor(model => model.Citizenship, new { @class = "label-form required" })
@ -82,34 +82,34 @@
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.DocumentType, new { @class = "label-form required" }) @Html.LabelFor(model => model.DocumentType, new { @class = "label-form required" })
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.ID, new { id = "ID-Card" }) Dowód osobisty</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.ID, new { id = "ID-Card" }) @Data.IDCard</label>
</div> </div>
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.Passport, new { id = "Passport" }) Paszport</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.Passport, new { id = "Passport" }) @Data.Passport</label>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.DocumentNumber,"Numer dowodu osobistego" ,new { @class = "label-form required", id="DocumentTypeId"}) @Html.LabelFor(model => model.DocumentNumber,Data.NumberOfIDCard ,new { @class = "label-form required", id="DocumentTypeId"})
@Html.EditorFor(model => model.DocumentNumber, new { htmlAttributes = new { @class = "form-control" } }) @Html.EditorFor(model => model.DocumentNumber, new { htmlAttributes = new { @class = "form-control" } })
</div> </div>
</div> </div>
</section> </section>
<section class="form-section"> <section class="form-section">
<header>Niepełnosprawność</header> <header>@Data.Disablility</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.IsDisabled, new { @class = "label-form required" }) @Html.LabelFor(model => model.IsDisabled, new { @class = "label-form required" })
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled,false) Nie</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled,false) @Data.Yes</label>
</div> </div>
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled, true) Tak</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled, true) @Data.No</label>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
<section class="form-section"> <section class="form-section">
<header>Dane kontaktowe</header> <header>@Data.Contact</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.Email, new { @class = "label-form required" }) @Html.LabelFor(model => model.Email, new { @class = "label-form required" })
@ -126,7 +126,7 @@
<div class="col-md-6 col-lg-4"> <div class="col-md-6 col-lg-4">
<section class="form-section"> <section class="form-section">
<header>Adres zamieszkania</header> <header>@Data.Address</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.Street, new { @class = "label-form required" }) @Html.LabelFor(model => model.Street, new { @class = "label-form required" })
@ -161,15 +161,15 @@
</div> </div>
</section> </section>
<section class="form-section"> <section class="form-section">
<header>Adres do korespondencji</header> <header>@Data.CorespondentAddress</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.CorespondentAdressSameAsResidence, new { @class = "label-form required" }) @Html.LabelFor(model => model.CorespondentAdressSameAsResidence, new { @class = "label-form required" })
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, true, new { id = "SameAsResident" }) Tak</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, true, new { id = "SameAsResident" }) @Data.Yes</label>
</div> </div>
<div class="radio-switch"> <div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, false, new { id = "NotSameAsResident" }) Nie</label> <label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, false, new { id = "NotSameAsResident" }) @Data.No</label>
</div> </div>
</div> </div>
<div @if (Model.CorespondentAdressSameAsResidence) <div @if (Model.CorespondentAdressSameAsResidence)
@ -209,7 +209,7 @@
</div> </div>
</section> </section>
<section class="form-section"> <section class="form-section">
<header>Wojsko</header> <header>@Data.Military</header>
<div class="p-20"> <div class="p-20">
<div class="form-group"> <div class="form-group">
@Html.LabelFor(model => model.MilitaryAttitude, new { @class = "label-form required" }) @Html.LabelFor(model => model.MilitaryAttitude, new { @class = "label-form required" })
@ -219,8 +219,8 @@
</section> </section>
</div> </div>
<div class="row col-sm-12 text-center pt-20"> <div class="row col-sm-12 text-center pt-20">
<input type="submit" class="submit-blue form-btn" value="Zapisz"/> <input type="submit" class="submit-blue form-btn" value="@Data.Save"/>
@Html.ActionLink("Anuluj","Index","Home",new {@class="form-cancel form-btn"}) @Html.ActionLink(Data.Cancel,"Index","Home",new {@class="form-cancel form-btn"})
</div> </div>
</div> </div>
} }
@ -240,14 +240,14 @@
$("#ID-Card").click(function () { $("#ID-Card").click(function () {
var handler = $("#DocumentTypeId"); var handler = $("#DocumentTypeId");
handler.text('Numer dowodu osobistego'); handler.text('@Data.NumberOfIDCard');
handler.prepend('<span class="glyphicon glyphicon-asterisk"></span>'); handler.prepend('<span class="glyphicon glyphicon-asterisk"></span>');
}); });
$("#Passport").click(function () { $("#Passport").click(function () {
var hander=$("#DocumentTypeId"); var hander=$("#DocumentTypeId");
hander.text('Numer paszportu'); hander.text('@Data.NumberOfPass');
hander.prepend('<span class="glyphicon glyphicon-asterisk"></span>'); hander.prepend('<span class="glyphicon glyphicon-asterisk"></span>');
}); });