/*
 * Author       : asolache
 * Generated on : 24-Nov-2009 22:57:25
 * Version      : 3.0
 */
application "Shuia"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Presentaci_n11
    {
        displayname = "Menú"
        form  Presentacion
        {
            success message  =  "Data Added Successfully!"
            
            plain
            (
                type  =  plaintext
                value = "<font style=\"font-weight: bold; color: rgb(255, 0, 0);\" size=\"4\">&nbsp;Banco de tiempo y conocimientos<br>&nbsp;para emprendedores y creativos.</font><br><br><font style=\"color: rgb(0, 0, 255);\" size=\"2\"><span style=\"color: rgb(0, 0, 0);\">Pulsa el boton alta y empieza a compartir</span><span style=\"color: rgb(255, 0, 0);\">!</span></font><br><br><font size=\"6\"><span style=\"font-weight: bold;\">Cómo funciona?</span></font><br><br><font size=\"4\">1-<font style=\"font-weight: bold;\">Date de alta</font><br></font><font size=\"4\">2-<font style=\"font-weight: bold;\">Da</font><br></font><font size=\"4\">3-</font><font style=\"font-weight: bold;\" size=\"4\">Recibe</font><br><br style=\"font-weight: bold;\"><font size=\"6\"><span style=\"font-weight: bold;\">Beneficios</span></font><br><br><font size=\"4\">1</font><font size=\"4\">-Pertenecer a una comunidad de personas&nbsp; predispuestas&nbsp; a compartir&nbsp; parte de su tiempo y conocimientos.<br><br></font><font size=\"4\">2</font><font size=\"4\">-Gestiona tu Cuenta de tiempo y conocimientos<br><br></font><font size=\"4\">3</font><font size=\"4\">-Accede a una bolsa de tareas con las que ocupar tu tiempo creativo/productivo<br><br></font><font size=\"4\">4</font><font size=\"4\">-Invitación a Eventos y fiestas </font><br>\n"
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        form  shuia
        {
            displayname  =  "Alta en comunitats.org"
            success message  =  "Tus datos han sido añadidos!\n\nGracias."
            
            must  have  unique  nom
            (
                type  =  text
                defaultvalue  =  "el teu nom"
            )

            email
            (
                type  =  text
                defaultvalue  =  "escriu el teu email"
                maxchar  =  60
            )

            foto
            (
                type  =  image
            )

            coneixements
            (
                type  =  checkboxes
                values  =  {"Administracio d'empreses",   "Administracions públiques",   "Atenció al Client/s",   "Qualitat , producció i I+D",   "Comercial i ventes",   "Compres logística i magatzems",   "Disseny i arts gràfiques",   "Educació i formació",   "Finances i banca",   "Informàtica i telecomunicacions",   "Enginyers i tècnics",   "Inmobiliari i construcció",   "Legal",   "Marketing i comunicació",   "Professions arts i oficis",   "Recursos humans",   "Sanitat i salut",   "Turisme i restauració"}
                tooltip  =  "Marca els teus coneixements"
            )

            passions
            (
                type  =  checkboxes
                values  =  {"Música",   "Pintura",   "Escultura",   "Esports",   "Lectura",   "Filosofía",   "Escriptura",   "Cinema",   "Ball",   "Els amics"}
                sortorder = ascending
            )

            necessitats
            (
                type  =  textarea
                tooltip  =  "Indica les teves necessitats i interessos per facilitar que altres socis de Shuia et puguin oferir la seva ajuda"
            )

            curriculum1
            (
                displayname  =  "Curriculum (opcional)"
                type = upload file
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                        on success
                        {
                            sendmail
                            (
                                To       :  "asolache@gmail.com" 
                                From     :  zoho.adminuserid 
                                Subject  :  "Nova alta a Shuia" 
                                Message  :  "" 
                            )
                        }
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  Presentacion_View
        {
            displayname = "Presentacion View"
            show  all  rows  from  Presentacion 
            options
            (
                display rows = 100
            )
        }

        form  Transacci_n
        {
            displayname  =  "Transferencia"
            success message  =  "Transferencia  realizada correctamente!\n\nde:ne\npara:nb\nimporte:\nfecha:\nGracias\n\nshuia"
            
            De
            (
                displayname  =  "De:"
                type  =  text
                defaultvalue  =  "pon tu nombre"
            )

            Para
            (
                displayname  =  "Para:"
                type  =  text
                defaultvalue  =  "pon nombre del beneficiario"
            )

            Numero_de_horas
            (
                displayname  =  "Numero de horas"
                type  =  text
                defaultvalue  =  "pon el numero de horas que le ingresas"
            )

            Fecha_de_ingreso
            (
                displayname  =  "Fecha"
                type  =  text
                defaultvalue  =  "pon la fecha en la que se deba realizar el ingreso"
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  shuia_View
        {
            displayname = "shuia View"
            show  all  rows  from  shuia 
            (
                nom
                email
                coneixements
                passions
                necessitats
                curriculum1 as "Curriculum (opcional)"
                foto
            )
            options
            (
                display rows = 100
            )
        }

        list  Transacci_n_View
        {
            displayname = "Transacción View"
            show  all  rows  from  Transacci_n 
            (
                De as "De:"
                Para as "Para:"
                Numero_de_horas as "Numero de horas"
                Fecha_de_ingreso as "Feacha de ingreso:"
            )
            options
            (
                display rows = 100
            )
        }

    }

    customize
    {
        layout = "pane left"
        base theme = "professional"
        color = "blue"
    }
}
